Пример #1
0
 internal PoSUnitOfWork(string connString)
 {
     _context       = new PoSContext(connString);
     _empRepo       = new EmployeeRepository(_context);
     _userRepo      = new UserRepository(_context);
     _productRepo   = new ProductRepository(_context);
     _orderRepo     = new OrderRepository(_context);
     _orderLineRepo = new OrderLineRepository(_context);
 }
Пример #2
0
 internal PoSUnitOfWork(PoSContext context)
 {
     _context       = context;
     _empRepo       = new EmployeeRepository(_context);
     _userRepo      = new UserRepository(_context);
     _productRepo   = new ProductRepository(_context);
     _orderRepo     = new OrderRepository(_context);
     _orderLineRepo = new OrderLineRepository(_context);
 }
 public PoSDbTransact(string connstring)
 {
     _context    = new PoSContext();
     _unitofwork = new PoSUnitOfWork(_context);
 }
Пример #4
0
 public UserViewController()
 {
     _context = new PoSContext();
 }
Пример #5
0
 public PostViewController()
 {
     _context = new PoSContext();
 }