namespace Before; /// /// An order, backed by the database: it derives from and /// holds a back-reference to its (the other end of the /// relation). In the "after" situation this becomes a plain POCO with an /// OrderDto carrying its data to the WebApp. /// public class Order : DbBase { /// 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). Part of the /// persisted state, like every other scalar. /// 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; } }