namespace Netina.Domain.Entities.Blogs; [AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)] [AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)] [AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)] [GenerateMapper] public partial class BlogCategory : ApiEntity { public BlogCategory() { } public BlogCategory(string name,string slug, string description) { Name = name; Slug = slug; Description = description; } public string Name { get; internal set; } = string.Empty; public string Slug { get; set; } = string.Empty; public string Description { get; internal set; } = string.Empty; public List Blogs { get; internal set; } = new(); }