Method ToAsyncEnumerable
ToAsyncEnumerable<TSource>(IQueryable<TSource>)
Returns an IAsyncEnumerable<T> which can be enumerated asynchronously.
public static IAsyncEnumerable<TSource> ToAsyncEnumerable<TSource>(this IQueryable<TSource> source)
Parameters
source
IQueryable<TSource>A sequence of values.
Returns
- IAsyncEnumerable<TSource>
An IAsyncEnumerable for the query results.
Type Parameters
TSource
The type of the elements of
source
.