EntityViewGenerator.GenerateViews Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
bir içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur ve bu görünümleri çalışma zamanında kullanılabilir hale getiren bir kaynak kod dosyası oluşturur.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| GenerateViews(StorageMappingItemCollection, TextWriter) |
içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur. Bu görünümlerin çalışma zamanında kullanılabilir olmasını sağlamak için bir TextWriter kaynak kod dosyasını'na gönderir. |
| GenerateViews(StorageMappingItemCollection, String) |
içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur. Belirli bir konuma, görünümleri çalışma zamanında kullanılabilir hale getiren bir kaynak kod dosyası yazar. |
| GenerateViews(StorageMappingItemCollection, TextWriter, Version) |
içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur. Bu görünümlerin çalışma zamanında kullanılabilir olmasını sağlamak için bir TextWriter kaynak kod dosyasını'na gönderir. |
Açıklamalar
Varsayılan olarak, görünümler bir ölçüde bir sorgu veya güncelleştirme gerçekleştirildiğinde çalışma zamanında oluşturulur. Derleme zamanında görünümler oluşturmak, çalışma zamanında görünüm oluşturma masrafını ortadan kaldırarak uygulama performansını geliştirebilir.
GenerateViews(StorageMappingItemCollection, TextWriter)
Önemli
Bu API, CLS uyumlu değildir.
içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur. Bu görünümlerin çalışma zamanında kullanılabilir olmasını sağlamak için bir TextWriter kaynak kod dosyasını'na gönderir.
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)
Parametreler
- mappingCollection
- StorageMappingItemCollection
Görünümlerin StorageMappingItemCollection oluşturulacağı görünüm.
- outputWriter
- TextWriter
TextWriter Oluşturulan kodun gönderileceği.
Döndürülenler
Oluşturulan hataları içeren liste.
- Öznitelikler
Şunlara uygulanır
GenerateViews(StorageMappingItemCollection, String)
Önemli
Bu API, CLS uyumlu değildir.
içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur. Belirli bir konuma, görünümleri çalışma zamanında kullanılabilir hale getiren bir kaynak kod dosyası yazar.
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)
Parametreler
- mappingCollection
- StorageMappingItemCollection
Görünümlerin StorageMappingItemCollection oluşturulacağı görünüm.
Döndürülenler
Oluşturulan hataları içeren liste.
- Öznitelikler
Şunlara uygulanır
GenerateViews(StorageMappingItemCollection, TextWriter, Version)
Önemli
Bu API, CLS uyumlu değildir.
içindeki StorageMappingItemCollectionkapsamlar için derleme zamanında görünümler oluşturur. Bu görünümlerin çalışma zamanında kullanılabilir olmasını sağlamak için bir TextWriter kaynak kod dosyasını'na gönderir.
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)
Parametreler
- mappingCollection
- StorageMappingItemCollection
StorageMappingItemCollection doğrulanacak.
- outputWriter
- TextWriter
Çıkışın TextWriter yazıldığı.
- targetEntityFrameworkVersion
- Version
Bunun özelliği EntityFrameworkVersions , Entity Framework'ün hedeflenen sürümüne karşılık gelir.
Döndürülenler
Oluşturulan hataları içeren liste.
- Öznitelikler