public UnitOfWork(ScientificStudiesRecordDbContext context) { _context = context; experimentRepository = new ExperimentRepository(_context); groupRepository = new GroupRepository(_context); studyRepository = new StudyRepository(_context); taskRepository = new TaskRepository(_context); testSubjectRepository = new TestSubjectRepository(_context); userRepository = new UserRepository(_context); }
public GroupRepository(ScientificStudiesRecordDbContext context) : base(context) { _scientificStudiesContext = context; }
public UserRepository(ScientificStudiesRecordDbContext context) { _context = context; dbSet = context.Set <User>(); }
public ExperimentRepository(ScientificStudiesRecordDbContext context) : base(context) { _scientificStudiesContext = context; }
public TestSubjectRepository(ScientificStudiesRecordDbContext context) : base(context) { _scientificStudiesContext = context; }