Freigeben über


DbQuery<TResult>.IEnumerable<TResult>.GetEnumerator-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Ruft die Enumeration dieser Abfrage ab, sodass sie für den Speicher ausgeführt wird.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetEnumerator As IEnumerator(Of TResult)
    Implements IEnumerable(Of TResult).GetEnumerator
'Usage
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.

Rückgabewert

Typ: System.Collections.Generic.IEnumerator<TResult>
Ein IEnumerator<T> für die Abfrage.

Implements

IEnumerable<T>.GetEnumerator()

Siehe auch

Verweis

DbQuery<TResult> Klasse

System.Data.Entity.Infrastructure-Namespace