Api-PWA/DocuMed.Domain/Entities/Hospitals/Section.cs

25 lines
686 B
C#
Raw Normal View History

2024-09-28 12:34:36 +03:30
namespace DocuMed.Domain.Entities.Hospitals;
2023-10-22 15:51:11 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
public partial class Section : ApiEntity
{
public Section()
{
}
2024-09-28 12:34:36 +03:30
public Section(string name, string detail, Guid hospitalId)
2023-10-22 15:51:11 +03:30
{
Name = name;
Detail = detail;
2024-09-28 12:34:36 +03:30
HospitalId = hospitalId;
2023-10-22 15:51:11 +03:30
}
public string Name { get; internal set; } = string.Empty;
public string Detail { get; internal set; } = string.Empty;
2024-09-28 12:34:36 +03:30
public Guid HospitalId { get; internal set; }
public Hospital? Hospital { get; internal set; }
2023-10-22 15:51:11 +03:30
}