Пример #1
0
 public UnitOfWork(StudentsManagamentContext context)
 {
     _context   = context;
     Students   = new StudentRepository(_context);
     Teachers   = new TeacherRepository(_context);
     Activities = new ActivityRepository(_context);
 }
 public TeacherRepository(StudentsManagamentContext context)
     : base(context)
 {
 }
Пример #3
0
 public ActivityRepository(StudentsManagamentContext context)
     : base(context)
 {
 }
Пример #4
0
 public StudentRepository(StudentsManagamentContext context)
     : base(context)
 {
 }