protected GenericRepository(CacheContext context) { if (context == null) { throw new ArgumentNullException("context"); } this.Context = context; this.DbSet = context.GetTable <TEntity>(); }