cs11dotnet7/vscode/PracticalApps/Northwind.Common.EntityModels.Sqlite/Shipper.cs
2022-03-13 16:17:01 +00:00

32 lines
712 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Packt.Shared
{
public partial class Shipper
{
public Shipper()
{
Orders = new HashSet<Order>();
}
[Key]
public int ShipperId { get; set; }
[Required]
[Column(TypeName = "nvarchar (40)")]
[StringLength(40)]
public string CompanyName { get; set; } = null!;
[Column(TypeName = "nvarchar (24)")]
[StringLength(24)]
public string? Phone { get; set; }
[InverseProperty("ShipViaNavigation")]
public virtual ICollection<Order> Orders { get; set; }
}
}