Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
 public UserRepository(ScientificStudiesRecordDbContext context)
 {
     _context = context;
     dbSet    = context.Set <User>();
 }
Ejemplo n.º 4
0
 public ExperimentRepository(ScientificStudiesRecordDbContext context) : base(context)
 {
     _scientificStudiesContext = context;
 }
Ejemplo n.º 5
0
 public TestSubjectRepository(ScientificStudiesRecordDbContext context) : base(context)
 {
     _scientificStudiesContext = context;
 }