namespace After;
///
/// An order as a plain domain object: no inheritance, no
/// knowledge of . Its data travels to the WebApp as an
/// .
///
public class Order
{
///
/// Primary key as a plain value: until a
/// explicitly saves this order (which copies a
/// generated id in).
///
public Guid Id { get; set; }
/// Free-text description of what this order is for.
public string Description { get; set; } = string.Empty;
///
/// Order total in cents (integer — no floating-point money). A normal
/// attribute: it is persisted in and mapped
/// one-on-one into .
///
public int TotalInCents { get; set; }
///
/// The client that owns this order. Set automatically by
/// when the order is added to
/// (navigation fix-up).
///
public Client? Client { get; set; }
}