public DbRepository(FunAppContext context) { this.context = context; this.dbSet = this.context.Set <TEntity>(); }
public DbRepository(FunAppContext context) { _context = context; _dbSet = _context.Set <TEntity>(); }
public DbRepository(FunAppContext context) { this.context = context ?? throw new ArgumentNullException(nameof(this.context)); this.dbSet = this.context.Set <TEntity>(); }