namespace Brizco.Domain.Entities.Complex; [AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)] [AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)] [AdaptTo("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)] [GenerateMapper] public partial class Section : ApiEntity { public Section() { } public Section(string name, string description, Guid complexId) { Name = name; Description = description; ComplexId = complexId; } public string Name { get; internal set; } = string.Empty; public string Description { get; internal set; } = string.Empty; public Guid ComplexId { get; set; } public Complex? Complex { get; set; } public List Positions { get; internal set; } = new(); }