2023-10-19 21:28:09 +03:30
|
|
|
|
namespace DocuMed.Domain.Entities.City;
|
|
|
|
|
|
|
2023-10-20 19:40:23 +03:30
|
|
|
|
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
|
|
|
|
|
[GenerateMapper]
|
2023-10-19 21:28:09 +03:30
|
|
|
|
public partial class University : ApiEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
public University()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public University(string name, string address, Guid cityId)
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
Address = address;
|
|
|
|
|
|
CityId = cityId;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string Name { get; internal set; } = string.Empty;
|
|
|
|
|
|
public string Address { get; internal set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
public Guid CityId { get; internal set; }
|
|
|
|
|
|
public City? City { get; internal set; }
|
2023-10-22 15:51:11 +03:30
|
|
|
|
|
|
|
|
|
|
public List<Section> Sections { get; internal set; } = new();
|
2023-10-19 21:28:09 +03:30
|
|
|
|
}
|