public UnitOfWork(UdemyEmployeeManagementContext ctx)
 {
     _ctx = ctx;
     employeeLeaveAllocation        = new EmployeeLeaveAllocationRepository(_ctx);
     employeeLeaveRequestRepository = new EmployeeLeaveRequestRepository(_ctx);
     employeeLeaveTypeRepository    = new EmployeeLeaveTypeRepository(_ctx);
 }
 public EmployeeLeaveAllocationRepository(UdemyEmployeeManagementContext ctx) : base(ctx)
 {
     _ctx = _ctx;
 }
Пример #3
0
 public EmployeeLeaveRequestRepository(UdemyEmployeeManagementContext ctx) : base(ctx)
 {
 }
 public WorkOrderRepository(UdemyEmployeeManagementContext ctx)
     : base(ctx)
 {
     _ctx = ctx;
 }
Пример #5
0
 public Repository(UdemyEmployeeManagementContext ctx)
 {
     _ctx       = ctx;
     this.dbSet = _ctx.Set <T>();
 }