แก้ไข

แชร์ผ่าน


EntityViewGenerator.Validate Method

Definition

Overloads

Validate(StorageMappingItemCollection)

Validates a StorageMappingItemCollection.

Validate(StorageMappingItemCollection, Version)

Validates a StorageMappingItemCollection.

Validate(StorageMappingItemCollection)

Important

This API is not CLS-compliant.

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)

Parameters

mappingCollection
StorageMappingItemCollection

The StorageMappingItemCollection to be validated.

Returns

A list that contains any generated errors.

Attributes

Applies to

Validate(StorageMappingItemCollection, Version)

Important

This API is not CLS-compliant.

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)

Parameters

mappingCollection
StorageMappingItemCollection

The StorageMappingItemCollection to be validated.

targetEntityFrameworkVersion
Version

The property of EntityFrameworkVersions that corresponds to the targeted version of the Entity Framework.

Returns

A list that contains any validation errors.

Attributes

Applies to