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);
 }
 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);
 }
Esempio n. 4
0
 public UserViewController()
 {
     _context = new PoSContext();
 }
Esempio n. 5
0
 public PostViewController()
 {
     _context = new PoSContext();
 }