68 lines
1.9 KiB
C#
68 lines
1.9 KiB
C#
namespace MapperSourceGen.Sample.Domain.Customers;
|
|
|
|
/// <summary>
|
|
/// Model representing a customer in the system.
|
|
/// </summary>
|
|
[Mapper]
|
|
public sealed class Customer
|
|
{
|
|
/// <summary>
|
|
/// Represents the address lines of the customer.
|
|
/// </summary>
|
|
public IReadOnlyList<string> AddressLines { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Represents the country of the customer.
|
|
/// </summary>
|
|
public string Country { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the date and time when the customer was created.
|
|
/// </summary>
|
|
[MapIgnore]
|
|
public DateTimeOffset Created { get; set; }
|
|
|
|
/// <summary>
|
|
/// Represents the unique identifier for the customer.
|
|
/// </summary>
|
|
public Guid CustomerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Represents the email address of the customer.
|
|
/// </summary>
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the first name of the customer.
|
|
/// </summary>
|
|
public string FirstName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the last name of the customer.
|
|
/// </summary>
|
|
public string LastName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the phone number of the customer.
|
|
/// </summary>
|
|
public string Phone { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the postal code of the customer.
|
|
/// </summary>
|
|
[MapAlias("ZipCode")]
|
|
public string PostalCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the state or province of the customer.
|
|
/// </summary>
|
|
[MapAlias("State")]
|
|
public string StateOrProvince { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Represents the date and time when the customer was last updated (nullable).
|
|
/// </summary>
|
|
[MapIgnore]
|
|
public DateTimeOffset? Updated { get; set; }
|
|
}
|