19 lines
620 B
C#
19 lines
620 B
C#
|
|
using BMA.EHR.Domain.Models.Base;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
|
|||
|
|
namespace BMA.EHR.Domain.Models.MetaData
|
|||
|
|
{
|
|||
|
|
public class Province : EntityBase
|
|||
|
|
{
|
|||
|
|
[Required, MaxLength(150), Column(Order = 1), Comment("จังหวัด")]
|
|||
|
|
public string Name { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
|||
|
|
public bool IsActive { get; set; } = true;
|
|||
|
|
|
|||
|
|
public virtual List<District> Districts { get; set; } = new();
|
|||
|
|
}
|
|||
|
|
}
|