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

10 lines
412 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 Customer : ApiEntity
{
public Guid UserId { get; set; }
public ApplicationUser? User { get; set; }
}