mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
24 lines
551 B
C#
24 lines
551 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
|
|||
|
|
namespace Packt.Shared
|
|||
|
|
{
|
|||
|
|
[Keyless]
|
|||
|
|
public partial class Territory
|
|||
|
|
{
|
|||
|
|
[Required]
|
|||
|
|
[Column(TypeName = "nvarchar")]
|
|||
|
|
public string TerritoryId { get; set; } = null!;
|
|||
|
|
|
|||
|
|
[Required]
|
|||
|
|
[Column(TypeName = "nchar")]
|
|||
|
|
public string TerritoryDescription { get; set; } = null!;
|
|||
|
|
|
|||
|
|
[Column(TypeName = "int")]
|
|||
|
|
public int RegionId { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|