IDbAsyncEnumerator<T> 接口

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

IEnumerator<T> 接口的异步版本,它允许异步检索元素。 此接口用于与实体框架查询交互且不应由自定义类来实现。

命名空间:  System.Data.Entity.Infrastructure
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Interface IDbAsyncEnumerator(Of Out T) _
    Inherits IDbAsyncEnumerator, IDisposable
用法
Dim instance As IDbAsyncEnumerator(Of Out T)
public interface IDbAsyncEnumerator<out T> : IDbAsyncEnumerator, 
    IDisposable
generic<typename T>
public interface class IDbAsyncEnumerator : IDbAsyncEnumerator, 
    IDisposable
type IDbAsyncEnumerator<'T> =  
    interface 
        interface IDbAsyncEnumerator 
        interface IDisposable 
    end
JScript does not support generic types and methods.

类型参数

IDbAsyncEnumerator<T> 类型公开以下成员。

属性

  名称 描述
公共属性 Current 获取迭代中的当前元素。

顶部

方法

  名称 描述
公共方法 Dispose (继承自 IDisposable。)
公共方法 MoveNextAsync 将枚举器前移到序列中的下一个元素,异步返回结果。 (继承自 IDbAsyncEnumerator。)

顶部

请参阅

参考

System.Data.Entity.Infrastructure 命名空间