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; }
public ContextRepository(TimeTable context) { _context = context; _dbSet = context.Set <TEntity>(); }