共用方式為


EntityViewGenerator.Validate 方法

定義

多載

Validate(StorageMappingItemCollection)

驗證 StorageMappingItemCollection

Validate(StorageMappingItemCollection, Version)

驗證 StorageMappingItemCollection

Validate(StorageMappingItemCollection)

重要

此 API 不符合 CLS 規範。

public:
 static System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ Validate(System::Data::Mapping::StorageMappingItemCollection ^ mappingCollection);
public static System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> Validate (System.Data.Mapping.StorageMappingItemCollection mappingCollection);
[System.CLSCompliant(false)]
public static System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> Validate (System.Data.Mapping.StorageMappingItemCollection mappingCollection);
static member Validate : System.Data.Mapping.StorageMappingItemCollection -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
[<System.CLSCompliant(false)>]
static member Validate : System.Data.Mapping.StorageMappingItemCollection -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Shared Function Validate (mappingCollection As StorageMappingItemCollection) As IList(Of EdmSchemaError)

參數

傳回

清單,其中包含所有產生的錯誤。

屬性

適用於

Validate(StorageMappingItemCollection, Version)

重要

此 API 不符合 CLS 規範。

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

參數

targetEntityFrameworkVersion
Version

對應至目標 Entity Framework 版本之 EntityFrameworkVersions 的屬性。

傳回

清單,其中包含所有驗證錯誤。

屬性

適用於