EntityViewGenerator.GenerateViews 方法

定义

在编译时为盘区 StorageMappingItemCollection生成视图,并创建一个源代码文件,使这些视图在运行时可用。

重载

名称 说明
GenerateViews(StorageMappingItemCollection, TextWriter)

在编译时为盘 StorageMappingItemCollection区生成视图。 将源代码文件发送到 a TextWriter ,以使这些视图在运行时可用。

GenerateViews(StorageMappingItemCollection, String)

在编译时为盘 StorageMappingItemCollection区生成视图。 将源代码文件写入指定位置,使视图在运行时可用。

GenerateViews(StorageMappingItemCollection, TextWriter, Version)

在编译时为盘 StorageMappingItemCollection区生成视图。 将源代码文件发送到 a TextWriter ,以使这些视图在运行时可用。

注解

默认情况下,每当对盘区执行查询或更新时,视图在运行时生成。 在编译时生成视图可以通过消除在运行时生成视图的费用来提高应用程序性能。

GenerateViews(StorageMappingItemCollection, TextWriter)

重要

此 API 不符合 CLS。

在编译时为盘 StorageMappingItemCollection区生成视图。 将源代码文件发送到 a 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区生成视图。 将源代码文件发送到 a 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)

参数

outputWriter
TextWriter

TextWriter将输出写入到的输出。

targetEntityFrameworkVersion
Version

该属性 EntityFrameworkVersions 对应于实体框架的目标版本。

返回

包含任何生成的错误的列表。

属性

适用于