1
0
This repository has been archived on 2025-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2025-07-21 13:49:26 -04:00

37 lines
1.0 KiB
C#

namespace MapperSourceGen.Sample.Domain.Orders;
/// <summary>
/// Model representing an order in the system.
/// </summary>
[Mapper]
public sealed class Order
{
/// <summary>
/// Represents the date and time when the order was created.
/// </summary>
public DateTimeOffset Created { get; set; }
/// <summary>
/// Represents the unique identifier for the customer associated with the order (nullable).
/// </summary>
public Guid? CustomerId { get; set; }
/// <summary>
/// Represents the unique identifier for the order (private).
/// </summary>
[MapAlias("EntityId")]
public Guid Id { get; set; }
/// <summary>
/// Represents the unique identifier integer for the order (public).
/// </summary>
[MapAlias("OrderId")]
public int IncrementId { get; set; }
/// <summary>
/// Represents the date and time when the order was last updated.
/// </summary>
[MapIgnore]
public DateTimeOffset? Updated { get; set; }
}