MetadataItemCollectionFactory.CreateStorageMappingItemCollection 方法

定义

使用 StorageMappingItemCollection 对象中的映射信息及所指定 XmlReaderEdmItemCollection 对象中的元数据创建 StoreItemCollection

重载

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

创建一个 StorageMappingItemCollection 并加载元数据,该元数据包含在指定的 EdmItemCollectionStoreItemCollection 以及 XmlReader 对象的集合中。

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

使用 StorageMappingItemCollection 对象中的映射信息及所指定 XmlReaderEdmItemCollection 对象中的元数据创建 StoreItemCollection

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

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

IEnumerableXmlReader,它包含元数据文件。

errors
IList<EdmSchemaError>

IListEdmSchemaErrorStorageMappingItemCollection 创建过程中生成的所有错误都将添加到列表。

返回

包含指定元数据的 StorageMappingItemCollection

适用于

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

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

IEnumerableXmlReader,它包含元数据文件。

targetEntityFrameworkVersion
Version

与 Entity Framework 的目标版本相对应的 EntityFrameworkVersions 的属性。

errors
IList<EdmSchemaError>

IListEdmSchemaErrorStorageMappingItemCollection 创建过程中生成的所有错误都将添加到列表。

返回

包含指定元数据的 StorageMappingItemCollection

适用于