mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
27 lines
669 B
C#
27 lines
669 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; }
|
|
[StringLength(40)]
|
|
public string CompanyName { get; set; } = null!;
|
|
[StringLength(24)]
|
|
public string? Phone { get; set; }
|
|
|
|
[InverseProperty("ShipViaNavigation")]
|
|
public virtual ICollection<Order> Orders { get; set; }
|
|
}
|
|
}
|