public GenericRepository(ContestContext context, RedisService cache) { this.context = context; this.cache = cache; dbSet = context.Set <TEntity>(); }
public QuestionRepository(ContestContext context, RedisService cache) : base(context, cache) { choiceQuestionSet = context.Set <ChoiceQuestion>(); trueFalseQuestionSet = context.Set <TrueFalseQuestion>(); }