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