예제 #1
0
 public async Task <IEnumerable <Country> > FilterBy(Expression <Func <Country, bool> > predicate)
 {
     return(await _destinationDbContext.Set <Country>().Where(predicate).ToListAsync());
 }
예제 #2
0
 public IEnumerable <T> Filter(Expression <Func <T, bool> > predicate)
 {
     return(_skyDbContext.Set <T>().Where(predicate).ToList());
 }