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