Example #1
0
 public UnitOfWork(LabAssistantContext context)
 {
     _context           = context;
     LecturerRepo       = new LecturerRepository(_context);
     StudentRepo        = new StudentRepository(_context);
     SessionRepository  = new SessionRepository(_context);
     QuestionRepository = new QuestionRepository(_context);
     CommentRepository  = new CommentRepository(_context);
     AnswerRepository   = new AnswerRepository(_context);
     GroupRepository    = new GroupRepository(_context);
 }
Example #2
0
 public LecturerRepository(LabAssistantContext context) : base(context)
 {
 }
 public SessionRepository(LabAssistantContext context) : base(context)
 {
 }
Example #4
0
 public CommentRepository(LabAssistantContext context) : base(context)
 {
 }
Example #5
0
 public GroupRepository(LabAssistantContext context) : base(context)
 {
 }
Example #6
0
 public AnswerRepository(LabAssistantContext context) : base(context)
 {
 }