Share via


DbRawSqlQuery<TElement>.IDbAsyncEnumerable.GetAsyncEnumerator 方法

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

傳回 IDbAsyncEnumerable,其在列舉時會對資料庫執行 SQL 查詢。

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

語法

'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetAsyncEnumerator As IDbAsyncEnumerator 
    Implements IDbAsyncEnumerable.GetAsyncEnumerator
'用途
Dim instance As DbRawSqlQuery 
Dim returnValue As IDbAsyncEnumerator 

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

傳回值

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

Implements

IDbAsyncEnumerable.GetAsyncEnumerator()

請參閱

參考

DbRawSqlQuery<TElement> 類別

System.Data.Entity.Infrastructure 命名空間