public GenericRepository(/*ILogger<GenericRepository<T>> logger, */ INorthwindContext dbContext) { //this.logger = logger; this.dbContext = dbContext; dbSet = dbContext.Set <T>(); }
public virtual IEnumerable <TEntity> Get() { return(_northwindDb.Set <TEntity>().ToList()); }