Ejemplo n.º 1
0
 public List <TEntity> GetWhere(Func <TEntity, bool> predicate)
 {
     return(DbEntitySet.Where(predicate).ToList());
 }
Ejemplo n.º 2
0
 public Task <List <TEntity> > GetWhereAsync(Func <TEntity, bool> predicate)
 {
     return(Task.Run(() => DbEntitySet.Where(predicate).ToList()));
 }