hrms-api-exam/Models/District.cs

20 lines
670 B
C#
Raw Permalink Normal View History

2023-03-23 12:31:21 +07:00
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Recurit.Exam.Service.Models
{
public class District : EntityBase
{
[Required, MaxLength(150), Column(Order = 1), Comment("เขต/อำเภอ")]
2025-01-05 21:59:15 +07:00
public string name { get; set; } = string.Empty;
2023-03-23 12:31:21 +07:00
2025-01-05 21:59:15 +07:00
// [Column(Order = 2), Comment("สถานะการใช้งาน")]
// public bool IsActive { get; set; } = true;
2023-03-23 12:31:21 +07:00
2025-01-05 21:59:15 +07:00
// public virtual List<SubDistrict> SubDistricts { get; set; } = new();
2023-03-23 12:31:21 +07:00
2025-01-05 21:59:15 +07:00
// public virtual Province? Province { get; set; }
2023-03-23 12:31:21 +07:00
}
}