Пример #1
0
        public GetTime(TimeTable db, ContextRepository <User> userRepository,
                       ContextRepository <Department> departamentRepository, ContextRepository <Group> groupRepository,
                       ContextRepository <Adds> lessonRepository, ContextRepository <Rooms> auditoryRepository,
                       ContextRepository <Theme> subjectRepository, ContextRepository <Manager> teatcherRepository)
        {
            _db = db;

            Users        = userRepository;
            Departaments = departamentRepository;
            Groups       = groupRepository;
            Lessons      = lessonRepository;
            Auditories   = auditoryRepository;
            Subjects     = subjectRepository;
            Teachers     = teatcherRepository;
        }
Пример #2
0
 public ContextRepository(TimeTable context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }