Api/Netina.Domain/Entities/Users/Marketer.cs

14 lines
577 B
C#

using Netina.Common.Models.Entity;
namespace Netina.Domain.Entities.Users;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
[GenerateMapper]
public class Marketer : ApiEntity
{
public string FatherName { get; set; } = string.Empty;
public string Shaba { get; set; } = string.Empty;
public Guid UserId { get; set; }
public ApplicationUser? User { get; set; }
}