The last is terrible. It models what it has a sales order, which, in turn, is modeled by an object, rather than simulating something that has a customer order object.
"BusinessObject" should only be the name of something in your code if you are writing a tool for developers to help them deal with business objects.
The first is often good.
, SalesOrder - "", . SalesOrders, SalesOrder, ( +), , s, , .
, , . . :
public class Sale
{
public SalesOrder SalesOrder{get;set;}
public SalesReference SalesReference{get;set;}
public decimal SalesValue{get;set;}
public string SalesCurrency{get;set;}
}
"" , () .
, :
public class Sale
{
public SalesOrder SalesOrder{get;set;}
public StockOrder StockOrder{get;set;}
}
, :
- , , (, , "", "-", "" , ).
- , .
, ( , ). , .