order total: TotalInCents on both Orders, mapped into OrderDto and OrderData
yak: ordertotalincents-on-both-sides-dto-mapping-j00p
This commit is contained in:
@@ -17,6 +17,13 @@ public class Order
|
||||
/// <summary>Free-text description of what this order is for.</summary>
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Order total in cents (integer — no floating-point money). A normal
|
||||
/// attribute: it is persisted in <see cref="OrderData"/> and mapped
|
||||
/// one-on-one into <see cref="OrderDto.TotalInCents"/>.
|
||||
/// </summary>
|
||||
public int TotalInCents { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The client that owns this order. Set automatically by
|
||||
/// <see cref="ClientOrders"/> when the order is added to
|
||||
|
||||
Reference in New Issue
Block a user