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