ObjectQuery<T>.IDbAsyncEnumerable<T>.GetAsyncEnumerator 方法

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

返回 IDbAsyncEnumerator<T>,被枚举时它将针对数据库执行给定的 SQL 查询。

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

语法

声明
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetAsyncEnumerator As IDbAsyncEnumerator(Of T)
    Implements IDbAsyncEnumerable(Of T).GetAsyncEnumerator
用法
Dim instance As ObjectQuery 
Dim returnValue As IDbAsyncEnumerator(Of T)

returnValue = CType(instance, IDbAsyncEnumerable(Of T)).GetAsyncEnumerator()
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
IDbAsyncEnumerator<T> IDbAsyncEnumerable<T>.GetAsyncEnumerator()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual IDbAsyncEnumerator<T>^ GetAsyncEnumerator() sealed = IDbAsyncEnumerable<T>::GetAsyncEnumerator
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract GetAsyncEnumerator : unit -> IDbAsyncEnumerator<'T> 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override GetAsyncEnumerator : unit -> IDbAsyncEnumerator<'T> 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

返回值

类型:System.Data.Entity.Infrastructure.IDbAsyncEnumerator<T>
查询结果。

Implements

IDbAsyncEnumerable<T>.GetAsyncEnumerator()

请参阅

参考

ObjectQuery<T> 类

System.Data.Entity.Core.Objects 命名空间