Api-PWA/DocuMed.Domain/Entities/City/City.cs

24 lines
743 B
C#
Raw Permalink Normal View History

2023-10-19 21:28:09 +03:30
namespace DocuMed.Domain.Entities.City;
2023-10-20 19:40:23 +03:30
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
2024-09-28 12:34:36 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
2023-10-20 19:40:23 +03:30
[GenerateMapper]
2024-09-28 12:34:36 +03:30
2023-10-19 21:28:09 +03:30
public partial class City : ApiEntity
{
public City()
{
}
public City(string name)
{
Name = name;
}
public string Name { get; internal set; } = string.Empty;
public List<University> Universities { get; internal set; } = new();
}