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; }
public EmployeeLeaveRequestRepository(UdemyEmployeeManagementContext ctx) : base(ctx) { }
public WorkOrderRepository(UdemyEmployeeManagementContext ctx) : base(ctx) { _ctx = ctx; }
public Repository(UdemyEmployeeManagementContext ctx) { _ctx = ctx; this.dbSet = _ctx.Set <T>(); }