Пример #1
0
 public OrderContext(IDataConnector dataConnector)
 {
     dataConnector  = this.dataConnector;
     accountContext = new AccountContext(dataConnector);
     itemContext    = new OrderItemContext(dataConnector);
 }
Пример #2
0
 public OrderContext()
 {
     dataConnector  = new SQLConnector();
     accountContext = new AccountContext();
     itemContext    = new OrderItemContext();
 }