24 lines
693 B
C#
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>();
|
|
}
|
|
}
|