MetadataItemCollectionFactory.CreateStorageMappingItemCollection 方法

定义

使用 StorageMappingItemCollection 对象中的映射信息及所指定 XmlReaderEdmItemCollection 对象中的元数据创建 StoreItemCollectionCreates 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>)

创建一个 StorageMappingItemCollection 并加载元数据,该元数据包含在指定的 EdmItemCollectionStoreItemCollection 以及 XmlReader 对象的集合中。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>)

使用 StorageMappingItemCollection 对象中的映射信息及所指定 XmlReaderEdmItemCollection 对象中的元数据创建 StoreItemCollectionCreates 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>)

创建一个 StorageMappingItemCollection 并加载元数据,该元数据包含在指定的 EdmItemCollectionStoreItemCollection 以及 XmlReader 对象的集合中。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

参数

edmCollection
EdmItemCollection

一个 EdmItemCollection 对象。An EdmItemCollection object.

storeCollection
StoreItemCollection

StoreItemCollection 对象。A StoreItemCollection object.

readers
IEnumerable<XmlReader>

IEnumerableXmlReader,它包含元数据文件。An IEnumerable of XmlReader containing the metadata files.

errors
IList<EdmSchemaError>

IListEdmSchemaErrorAn IList of EdmSchemaError. StorageMappingItemCollection 创建过程中生成的所有错误都将添加到列表。Any errors generated during the StorageMappingItemCollection creation are added to the list.

返回

StorageMappingItemCollection

包含指定元数据的 StorageMappingItemCollectionA StorageMappingItemCollection that contains the specified metadata.

适用于

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

使用 StorageMappingItemCollection 对象中的映射信息及所指定 XmlReaderEdmItemCollection 对象中的元数据创建 StoreItemCollectionCreates 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

参数

edmCollection
EdmItemCollection

一个 EdmItemCollection 对象。An EdmItemCollection object.

storeCollection
StoreItemCollection

StoreItemCollection 对象。A StoreItemCollection object.

readers
IEnumerable<XmlReader>

IEnumerableXmlReader,它包含元数据文件。An IEnumerable of XmlReader containing the metadata files.

targetEntityFrameworkVersion
Version

与 Entity Framework 的目标版本相对应的 EntityFrameworkVersions 的属性。The property of EntityFrameworkVersions that corresponds to the targeted version of the Entity Framework.

errors
IList<EdmSchemaError>

IListEdmSchemaErrorAn IList of EdmSchemaError. StorageMappingItemCollection 创建过程中生成的所有错误都将添加到列表。Any errors generated during the StorageMappingItemCollection creation are added to the list.

返回

StorageMappingItemCollection

包含指定元数据的 StorageMappingItemCollectionA StorageMappingItemCollection that contains the specified metadata.

适用于