chore: initial commit
Signed-off-by: Alan Brault <alan.brault@visus.io>
This commit is contained in:
36
sample/MapperSourceGen.Sample/Domain/Orders/Order.cs
Normal file
36
sample/MapperSourceGen.Sample/Domain/Orders/Order.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user