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)
 {
 }