Exemplo n.º 1
0
 public UnitOfWork(SystemZapisowyEntities context)
 {
     _context       = context;
     Courses        = new CourseRepository(_context);
     Users          = new UserRepository(_context);
     Administrators = new AdministratorRepository(_context);
     Employees      = new EmployeeRepository(_context);
     Students       = new StudentRepository(_context);
     Days           = new DayRepository(_context);
     StudentsGroup  = new StudentsGroupRepository(_context);
     FieldsOfStudy  = new FieldsOfStudyRepository(_context);
     Groups         = new GroupRepository(_context);
     Semesters      = new SemesterRepository(_context);
     Logs           = new StudentEnrollmentLogRepository(_context);
 }
Exemplo n.º 2
0
 public UserRepository(SystemZapisowyEntities context) : base(context)
 {
 }
 public CourseRepository(SystemZapisowyEntities context) : base(context)
 {
 }