语言

MetadataItemCollectionFactory.CreateStorageMappingItemCollection 方法

定义

从对象中的StorageMappingItemCollection映射信息以及指定XmlReader对象和EdmItemCollection对象中的元数据创建一个StoreItemCollection映射信息。

重载

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

StorageMappingItemCollection创建并加载包含在指定EdmItemCollection对象StoreItemCollection和对象的集合XmlReader中的元数据。

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 对象。

storeCollection
StoreItemCollection

StoreItemCollection 对象。

readers
IEnumerable<XmlReader>

IEnumerable包含元数据文件的一个XmlReader。

errors
IList<EdmSchemaError>

的一个 IList 。EdmSchemaError 创建过程中 StorageMappingItemCollection 生成的任何错误都会添加到列表中。

返回

一个 StorageMappingItemCollection 包含指定元数据的元数据。

适用于

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

从对象中的StorageMappingItemCollection映射信息以及指定XmlReader对象和EdmItemCollection对象中的元数据创建一个StoreItemCollection映射信息。

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 对象。

storeCollection
StoreItemCollection

StoreItemCollection 对象。

readers
IEnumerable<XmlReader>

IEnumerable包含元数据文件的一个XmlReader。

targetEntityFrameworkVersion
Version

该属性 EntityFrameworkVersions 对应于实体框架的目标版本。

errors
IList<EdmSchemaError>

的一个 IList 。EdmSchemaError 创建过程中 StorageMappingItemCollection 生成的任何错误都会添加到列表中。

返回

一个 StorageMappingItemCollection 包含指定元数据的元数据。

适用于