Пример #1
0
 public UnitOfWork(DataContext context)
 {
     this.context       = context;
     CustomerRepository = new CustomerRepository(context);
     OrderRepository    = new OrderRepository(context);
 }
 public APIDbOrderController()
 {
     repo = new OrderRepository();
 }
Пример #3
0
 public UnitOfWork(ClientOrderContext context)
 {
     this.context = context;
     Orders       = new OrderRepository(context);
     Clients      = new ClientRepository(context);
 }