示例#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();
 }