次の方法で共有


DbRawSqlQuery<TElement>.IEnumerable.GetEnumerator メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

列挙されたときにデータベースに対して SQL クエリを実行する IEnumerator を返します。

名前空間:  System.Data.Entity.Infrastructure
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Private Function GetEnumerator As IEnumerator 
    Implements IEnumerable.GetEnumerator
'使用
Dim instance As DbRawSqlQuery 
Dim returnValue As IEnumerator 

returnValue = CType(instance, IEnumerable).GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
private:
virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator
private abstract GetEnumerator : unit -> IEnumerator  
private override GetEnumerator : unit -> IEnumerator
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

戻り値

型 : System.Collections.IEnumerator
要素の反復処理に使用できる IEnumerator オブジェクト。

Implements

IEnumerable.GetEnumerator()

参照

参照

DbRawSqlQuery<TElement> クラス

System.Data.Entity.Infrastructure 名前空間