public async Task <IEnumerable <TEntity> > Read(Func <TEntity, bool> filter) { return(await _context.Set <TEntity>().AsAsyncEnumerable().Where(filter).ToListAsync()); }
public async Task <TEntity> Read(string id) { return(await _context.Set <TEntity>().FindAsync(id)); }