Api-PWA/DocuMed.Domain/Entities/Staffs/Student.cs

30 lines
863 B
C#
Raw Normal View History

2024-09-28 12:34:36 +03:30
using Section = DocuMed.Domain.Entities.Hospitals.Section;
namespace DocuMed.Domain.Entities.Staffs;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
public partial class Student : ApiEntity
{
public Student()
{
}
public Student(Guid universityId, Guid userId)
2024-09-28 12:34:36 +03:30
{
UniversityId = universityId;
UserId = userId;
}
public string StudentId { get; set; } = string.Empty;
public Guid UniversityId { get; internal set; }
public University? University { get; internal set; }
public Guid? SectionId { get; internal set; }
2024-09-28 12:34:36 +03:30
public Section? Section { get; internal set; }
public Guid UserId { get; internal set; }
public ApplicationUser? User { get; internal set; }
}