Redigera

Dela via


MetadataItemCollectionFactory.CreateStorageMappingItemCollection Method

Definition

Creates a StorageMappingItemCollection from the mapping information in the XmlReader objects and the metadata in the specified EdmItemCollection and StoreItemCollection objects.

Overloads

CreateStorageMappingItemCollection(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, IList<EdmSchemaError>)

Creates a StorageMappingItemCollection and loads the metadata that is contained in the specified EdmItemCollection, StoreItemCollection, and collection of XmlReader objects.

CreateStorageMappingItemCollection(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)

Creates a StorageMappingItemCollection from the mapping information in the XmlReader objects and the metadata in the specified EdmItemCollection and StoreItemCollection objects.

CreateStorageMappingItemCollection(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, IList<EdmSchemaError>)

Creates a StorageMappingItemCollection and loads the metadata that is contained in the specified EdmItemCollection, StoreItemCollection, and collection of XmlReader objects.

public:
 static System::Data::Mapping::StorageMappingItemCollection ^ CreateStorageMappingItemCollection(System::Data::Metadata::Edm::EdmItemCollection ^ edmCollection, System::Data::Metadata::Edm::StoreItemCollection ^ storeCollection, System::Collections::Generic::IEnumerable<System::Xml::XmlReader ^> ^ readers, [Runtime::InteropServices::Out] System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ % errors);
public static System.Data.Mapping.StorageMappingItemCollection CreateStorageMappingItemCollection (System.Data.Metadata.Edm.EdmItemCollection edmCollection, System.Data.Metadata.Edm.StoreItemCollection storeCollection, System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, out System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> errors);
static member CreateStorageMappingItemCollection : System.Data.Metadata.Edm.EdmItemCollection * System.Data.Metadata.Edm.StoreItemCollection * seq<System.Xml.XmlReader> * IList -> System.Data.Mapping.StorageMappingItemCollection
Public Shared Function CreateStorageMappingItemCollection (edmCollection As EdmItemCollection, storeCollection As StoreItemCollection, readers As IEnumerable(Of XmlReader), ByRef errors As IList(Of EdmSchemaError)) As StorageMappingItemCollection

Parameters

edmCollection
EdmItemCollection

An EdmItemCollection object.

storeCollection
StoreItemCollection

A StoreItemCollection object.

readers
IEnumerable<XmlReader>

An IEnumerable of XmlReader containing the metadata files.

errors
IList<EdmSchemaError>

An IList of EdmSchemaError. Any errors generated during the StorageMappingItemCollection creation are added to the list.

Returns

A StorageMappingItemCollection that contains the specified metadata.

Applies to

CreateStorageMappingItemCollection(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)

Creates a StorageMappingItemCollection from the mapping information in the XmlReader objects and the metadata in the specified EdmItemCollection and StoreItemCollection objects.

public:
 static System::Data::Mapping::StorageMappingItemCollection ^ CreateStorageMappingItemCollection(System::Data::Metadata::Edm::EdmItemCollection ^ edmCollection, System::Data::Metadata::Edm::StoreItemCollection ^ storeCollection, System::Collections::Generic::IEnumerable<System::Xml::XmlReader ^> ^ readers, Version ^ targetEntityFrameworkVersion, [Runtime::InteropServices::Out] System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ % errors);
public static System.Data.Mapping.StorageMappingItemCollection CreateStorageMappingItemCollection (System.Data.Metadata.Edm.EdmItemCollection edmCollection, System.Data.Metadata.Edm.StoreItemCollection storeCollection, System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, Version targetEntityFrameworkVersion, out System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> errors);
static member CreateStorageMappingItemCollection : System.Data.Metadata.Edm.EdmItemCollection * System.Data.Metadata.Edm.StoreItemCollection * seq<System.Xml.XmlReader> * Version * IList -> System.Data.Mapping.StorageMappingItemCollection
Public Shared Function CreateStorageMappingItemCollection (edmCollection As EdmItemCollection, storeCollection As StoreItemCollection, readers As IEnumerable(Of XmlReader), targetEntityFrameworkVersion As Version, ByRef errors As IList(Of EdmSchemaError)) As StorageMappingItemCollection

Parameters

edmCollection
EdmItemCollection

An EdmItemCollection object.

storeCollection
StoreItemCollection

A StoreItemCollection object.

readers
IEnumerable<XmlReader>

An IEnumerable of XmlReader containing the metadata files.

targetEntityFrameworkVersion
Version

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

errors
IList<EdmSchemaError>

An IList of EdmSchemaError. Any errors generated during the StorageMappingItemCollection creation are added to the list.

Returns

A StorageMappingItemCollection that contains the specified metadata.

Applies to