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