DbSet<TEntity>.IAsyncEnumerable<TEntity>.GetAsyncEnumerator 方法

定义

返回一个 , IAsyncEnumerator<T> 枚举时将对数据库异步执行查询。

System.Collections.Generic.IAsyncEnumerator<TEntity> IAsyncEnumerable<TEntity>.GetAsyncEnumerator (System.Threading.CancellationToken cancellationToken);
abstract member System.Collections.Generic.IAsyncEnumerable<TEntity>.GetAsyncEnumerator : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerator<'Entity (requires 'Entity : null)>
override this.System.Collections.Generic.IAsyncEnumerable<TEntity>.GetAsyncEnumerator : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerator<'Entity (requires 'Entity : null)>
Function GetAsyncEnumerator (cancellationToken As CancellationToken) As IAsyncEnumerator(Of TEntity) Implements IAsyncEnumerable(Of TEntity).GetAsyncEnumerator

参数

cancellationToken
CancellationToken

返回

IAsyncEnumerator<TEntity>

查询结果。

实现

适用于