LSFE/LSFE.Infrastructure/Entities/Maintenance/Districts.cs
2026-07-30 10:31:04 +08:00

24 lines
693 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LSFE.Infrastructure.Entities.Maintenance
{
[Table("Districts")]
public class Districts
{
[Key]
public int DistrictId { get; set; }
public string? DistrictName { get; set; }
public int AreaId { get; set; }
[ForeignKey("AreaId")]
public Areas? Areas { get; set; }
public bool IsActive { get; set; }
public ICollection<Doctor.Doctor> Doctors { get; set; } = new List<Doctor.Doctor>();
}
}