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

16 lines
620 B
C#

namespace Netina.Domain.Entities.Users;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = [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 DateTime LastSettlement { get; set; }
public Guid UserId { get; set; }
public ApplicationUser? User { get; set; }
public Discount? Discount { get; set; }
}