public async Task <IEnumerable <T> > GetAll() { var result = await _context.Set <T>().ToListAsync(); return(result); }
protected Repository(CoffeeShopContext db) { Db = db; DbSet = db.Set <TEntity>(); }
public Repository(CoffeeShopContext context) { Context = context; DbSetEntity = Context.Set <TEntity>(); }