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
sourceIQueryable<TSource>A sequence of values.
Returns
- IAsyncEnumerable<TSource>
An IAsyncEnumerable for the query results.
Type Parameters
TSourceThe type of the elements of
source.