mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
27 lines
660 B
C#
27 lines
660 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Packt.Shared
|
|
{
|
|
[Table("Region")]
|
|
public partial class Region
|
|
{
|
|
public Region()
|
|
{
|
|
Territories = new HashSet<Territory>();
|
|
}
|
|
|
|
[Key]
|
|
[Column("RegionID")]
|
|
public int RegionId { get; set; }
|
|
[StringLength(50)]
|
|
public string RegionDescription { get; set; } = null!;
|
|
|
|
[InverseProperty("Region")]
|
|
public virtual ICollection<Territory> Territories { get; set; }
|
|
}
|
|
}
|