public EFRepository(IQuizFactoryDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of DbContext is required to use this repository.", "context");
            }

            this.Context = context;
            this.set     = context.Set <T>();
        }
 public QuizFactoryData(IQuizFactoryDbContext context)
 {
     this.context = context;
 }
Esempio n. 3
0
 public DeletableEntityRepository(IQuizFactoryDbContext context)
     : base(context)
 {
 }