Пример #1
0
 public SalesUnitOfWork(string connectionString)
 {
     _context         = new Sales.Model.Models.SalesDataBaseContext(connectionString);
     clientRepo       = new ClientRepository(_context);
     managerRepo      = new ManagerRepository(_context);
     operationRepo    = new OperationRepository(_context);
     priceHistoryRepo = new PriceHistoryRepository(_context);
     productRepo      = new ProductRepository(_context);
 }
Пример #2
0
 public ClientRepository(Sales.Model.Models.SalesDataBaseContext context) :
     base(context)
 {
 }
 public OperationRepository(Sales.Model.Models.SalesDataBaseContext context) :
     base(context)
 {
     _context = context;
 }
Пример #4
0
 public ManagerRepository(Sales.Model.Models.SalesDataBaseContext context) :
     base(context)
 {
 }
Пример #5
0
 public PriceHistoryRepository(Sales.Model.Models.SalesDataBaseContext context) :
     base(context)
 {
     _context = context;
 }
Пример #6
0
 public ProductRepository(Sales.Model.Models.SalesDataBaseContext context) :
     base(context)
 {
 }