Introduction
Last updated
public partial class Order : DomainModelBridge
{
[Required]
public string CustomerId { get; set; }
[Range(0.01, double.MaxValue)]
public decimal TotalAmount { get; set; }
// Your business logic here
public virtual Order AddOrder(AddOrderCommand cmd)
{
// Custom business rules
return this;
}
}