public GamesDbContextCleaner(GamesDbContext context, IWebHostEnvironment environment, ILogger <GamesDbContextCleaner> logger) : base( context, environment, logger) { Credentials = context.Set <Credential>(); }
// Constructor public GenericRepository(GamesDbContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
protected QueryBase(GamesDbContext context) { _query = context.Set <T>().AsNoTracking(); Context = context; }