Ejemplo n.º 1
0
 public UnitOfWork(EmployeeAPICoreDbContext context)
 {
     _context    = context;
     Employees   = new GenericRepository <Employee>(_context);
     Departments = new GenericRepository <Department>(_context);
 }
Ejemplo n.º 2
0
 public GenericRepository(EmployeeAPICoreDbContext context)
 {
     _context = context;
     DbSet    = context.Set <TEntity>();
 }
Ejemplo n.º 3
0
 public EmployeeServices(EmployeeAPICoreDbContext context)
 {
     _context = context;
     _uow     = new UnitOfWork.UnitOfWork(_context);
 }