Share via


DbRawSqlQuery<TElement>.IDbAsyncEnumerable<TElement>.GetAsyncEnumerator 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

傳回 IDbAsyncEnumerator<T>,其在列舉時會對資料庫執行 SQL 查詢。

命名空間:  System.Data.Entity.Infrastructure
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetAsyncEnumerator As IDbAsyncEnumerator(Of TElement)
    Implements IDbAsyncEnumerable(Of TElement).GetAsyncEnumerator
'用途
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.

傳回值

類型:System.Data.Entity.Infrastructure.IDbAsyncEnumerator<TElement>
可以用於逐一查看項目的 IDbAsyncEnumerator<T> 物件。

Implements

IDbAsyncEnumerable<T>.GetAsyncEnumerator()

請參閱

參考

DbRawSqlQuery<TElement> 類別

System.Data.Entity.Infrastructure 命名空間