DbQuery<TResult>.IEnumerable<TResult>.GetEnumerator 方法

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

获取此查询的枚举会导致对存储区执行此查询。

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

语法

声明
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetEnumerator As IEnumerator(Of TResult)
    Implements IEnumerable(Of TResult).GetEnumerator
用法
Dim instance As DbQuery 
Dim returnValue As IEnumerator(Of TResult)

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

返回值

类型:System.Collections.Generic.IEnumerator<TResult>
查询的 IEnumerator<T>

Implements

IEnumerable<T>.GetEnumerator()

请参阅

参考

DbQuery<TResult> 类

System.Data.Entity.Infrastructure 命名空间