Partager via


DbRawSqlQuery<TElement>.IDbAsyncEnumerable<TElement>.GetAsyncEnumerator, méthode

[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]

Retourne IDbAsyncEnumerator<T> qui lorsqu'il est énuméré exécute la requête SQL sur la base de données.

Espace de noms :  System.Data.Entity.Infrastructure
Assembly :  EntityFramework (dans EntityFramework.dll)

Syntaxe

'Déclaration
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetAsyncEnumerator As IDbAsyncEnumerator(Of TElement)
    Implements IDbAsyncEnumerable(Of TElement).GetAsyncEnumerator
'Utilisation
Dim instance As DbRawSqlQuery 
Dim returnValue As IDbAsyncEnumerator(Of TElement)

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

Valeur de retour

Type : System.Data.Entity.Infrastructure.IDbAsyncEnumerator<TElement>
Objet IDbAsyncEnumerator<T> qui peut être utilisé pour itérer au sein des éléments.

Implémentations

IDbAsyncEnumerable<T>.GetAsyncEnumerator()

Voir aussi

Référence

DbRawSqlQuery<TElement> Classe

Espace de noms System.Data.Entity.Infrastructure