共用方式為


MetadataItemCollectionFactory.CreateStorageMappingItemCollection 方法

定義

StorageMappingItemCollection 物件中的對應資訊及指定之 XmlReaderEdmItemCollection 物件中的中繼資料建立 StoreItemCollection

多載

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

建立 StorageMappingItemCollection,並載入包含在指定之 EdmItemCollectionStoreItemCollectionXmlReader 物件集合內的中繼資料。

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

StorageMappingItemCollection 物件中的對應資訊及指定之 XmlReaderEdmItemCollection 物件中的中繼資料建立 StoreItemCollection

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

建立 StorageMappingItemCollection,並載入包含在指定之 EdmItemCollectionStoreItemCollectionXmlReader 物件集合內的中繼資料。

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>

IListEdmSchemaError。 在 StorageMappingItemCollection 建立期間產生的任何錯誤都會加入到清單中。

傳回

包含指定之中繼資料的 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>

IListEdmSchemaError。 在 StorageMappingItemCollection 建立期間產生的任何錯誤都會加入到清單中。

傳回

包含指定之中繼資料的 StorageMappingItemCollection

適用於