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); }
public UserViewController() { _context = new PoSContext(); }
public PostViewController() { _context = new PoSContext(); }