DbQuery<TResult>.IDbAsyncEnumerable<TResult>.GetAsyncEnumerator (Método)

[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].

Devuelve una IDbAsyncEnumerator<T> que, cuando se enumera, ejecutará la consulta en la base de datos.

Espacio de nombres:  System.Data.Entity.Infrastructure
Ensamblado:  EntityFramework (en EntityFramework.dll)

Sintaxis

'Declaración
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetAsyncEnumerator As IDbAsyncEnumerator(Of TResult)
    Implements IDbAsyncEnumerable(Of TResult).GetAsyncEnumerator
'Uso
Dim instance As DbQuery 
Dim returnValue As IDbAsyncEnumerator(Of TResult)

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

Valor devuelto

Tipo: System.Data.Entity.Infrastructure.IDbAsyncEnumerator<TResult>
Resultados de la consulta.

Implementaciones

IDbAsyncEnumerable<T>.GetAsyncEnumerator()

Vea también

Referencia

DbQuery<TResult> Clase

System.Data.Entity.Infrastructure (Espacio de nombres)