Language

EntityViewGenerator.GenerateViews メソッド

定義

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成し、実行時にこれらのビューを使用できるようにするソース コード ファイルを作成します。

オーバーロード

名前 説明
GenerateViews(StorageMappingItemCollection, TextWriter)

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成します。 実行時にこれらのビューを使用できるようにするために、ソース コード ファイルを TextWriter に送信します。

GenerateViews(StorageMappingItemCollection, String)

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成します。 実行時にビューを使用できるようにする、指定した場所にソース コード ファイルを書き込みます。

GenerateViews(StorageMappingItemCollection, TextWriter, Version)

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成します。 実行時にこれらのビューを使用できるようにするために、ソース コード ファイルを TextWriter に送信します。

注釈

既定では、クエリまたは更新がエクステントに対して実行されるたびに、実行時にビューが生成されます。 コンパイル時にビューを生成すると、実行時にビューを生成する手間を省くことで、アプリケーションのパフォーマンスを向上させることができます。

GenerateViews(StorageMappingItemCollection, TextWriter)

重要

この API は CLS 準拠ではありません。

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成します。 実行時にこれらのビューを使用できるようにするために、ソース コード ファイルを TextWriter に送信します。

public:
 System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateViews(System::Data::Mapping::StorageMappingItemCollection ^ mappingCollection, System::IO::TextWriter ^ outputWriter);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateViews(System.Data.Mapping.StorageMappingItemCollection mappingCollection, System.IO.TextWriter outputWriter);
[System.CLSCompliant(false)]
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateViews(System.Data.Mapping.StorageMappingItemCollection mappingCollection, System.IO.TextWriter outputWriter);
member this.GenerateViews : System.Data.Mapping.StorageMappingItemCollection * System.IO.TextWriter -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
[<System.CLSCompliant(false)>]
member this.GenerateViews : System.Data.Mapping.StorageMappingItemCollection * System.IO.TextWriter -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateViews (mappingCollection As StorageMappingItemCollection, outputWriter As TextWriter) As IList(Of EdmSchemaError)

パラメーター

mappingCollection
StorageMappingItemCollection

ビューの生成元となる StorageMappingItemCollection 。

outputWriter
TextWriter

生成されたコードの送信先となる TextWriter 。

返品

生成されたエラーを含むリスト。

属性

適用対象

GenerateViews(StorageMappingItemCollection, String)

重要

この API は CLS 準拠ではありません。

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成します。 実行時にビューを使用できるようにする、指定した場所にソース コード ファイルを書き込みます。

public:
 System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateViews(System::Data::Mapping::StorageMappingItemCollection ^ mappingCollection, System::String ^ outputPath);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateViews(System.Data.Mapping.StorageMappingItemCollection mappingCollection, string outputPath);
[System.CLSCompliant(false)]
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateViews(System.Data.Mapping.StorageMappingItemCollection mappingCollection, string outputPath);
member this.GenerateViews : System.Data.Mapping.StorageMappingItemCollection * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
[<System.CLSCompliant(false)>]
member this.GenerateViews : System.Data.Mapping.StorageMappingItemCollection * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateViews (mappingCollection As StorageMappingItemCollection, outputPath As String) As IList(Of EdmSchemaError)

パラメーター

mappingCollection
StorageMappingItemCollection

ビューの生成元となる StorageMappingItemCollection 。

outputPath
String

ソース コード ファイルの書き込み先となる場所を指定する String 。

返品

生成されたエラーを含むリスト。

属性

適用対象

GenerateViews(StorageMappingItemCollection, TextWriter, Version)

重要

この API は CLS 準拠ではありません。

StorageMappingItemCollection内のエクステントのコンパイル時にビューを生成します。 実行時にこれらのビューを使用できるようにするために、ソース コード ファイルを TextWriter に送信します。

public:
 System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateViews(System::Data::Mapping::StorageMappingItemCollection ^ mappingCollection, System::IO::TextWriter ^ outputWriter, Version ^ targetEntityFrameworkVersion);
[System.CLSCompliant(false)]
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateViews(System.Data.Mapping.StorageMappingItemCollection mappingCollection, System.IO.TextWriter outputWriter, Version targetEntityFrameworkVersion);
[<System.CLSCompliant(false)>]
member this.GenerateViews : System.Data.Mapping.StorageMappingItemCollection * System.IO.TextWriter * Version -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateViews (mappingCollection As StorageMappingItemCollection, outputWriter As TextWriter, targetEntityFrameworkVersion As Version) As IList(Of EdmSchemaError)

パラメーター

mappingCollection
StorageMappingItemCollection

検証する StorageMappingItemCollection 。

outputWriter
TextWriter

出力の書き込み先となる TextWriter 。

targetEntityFrameworkVersion
Version

対象となるバージョンの Entity Framework に対応する EntityFrameworkVersions のプロパティ。

返品

生成されたエラーを含むリスト。

属性

適用対象