public UnitOfWork(CfsContext context) { _context = context; Department = new DepartmentRepository(_context); Employee = new EmployeeRepository(_context); }
public DepartmentRepository(CfsContext cfsContext) : base(cfsContext) { }
//ctor takes application dbcontext public Repository(CfsContext cfsContext) { _cfsContext = cfsContext; }
public EmployeeRepository(CfsContext cfsContext) : base(cfsContext) { }