public UnitOfWork(DataContext dataContext) { this.dataContext = dataContext; Activities = new ActivityRepository(this.dataContext); Alumnuses = new AlumnusRepository(this.dataContext); Employees = new EmployeeRepository(this.dataContext); SendLists = new SendListRepository(this.dataContext); }
public UnitOfWork(LibarysystemDBcontext libarysystemDBcontext) { _context = libarysystemDBcontext; activities = new ActivitiesRepository(_context); alumnus = new AlumnusRepository(_context); program = new ProgramRepository(_context); section = new SectionRepository(_context); employee = new EmployeeRepository(_context); person = new PersonRepository(_context); }