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

10 lines
428 B
C#

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