MetadataItemCollectionFactory.CreateStorageMappingItemCollection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從物件中的StorageMappingItemCollection映射資訊和指定的 XmlReader 和 EdmItemCollection 物件中的元資料建立 aStoreItemCollection。
多載
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
- storeCollection
- StoreItemCollection
- readers
- IEnumerable<XmlReader>
一個IEnumerableXmlReader包含元資料檔案的
- errors
- IList<EdmSchemaError>
一個 IList 的 EdmSchemaError。 建立過程中 StorageMappingItemCollection 產生的任何錯誤都會被加入清單。
傳回
StorageMappingItemCollection A 包含指定的元資料。
適用於
CreateStorageMappingItemCollection(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)
從物件中的StorageMappingItemCollection映射資訊和指定的 XmlReader 和 EdmItemCollection 物件中的元資料建立 aStoreItemCollection。
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
- storeCollection
- StoreItemCollection
- readers
- IEnumerable<XmlReader>
一個IEnumerableXmlReader包含元資料檔案的
- targetEntityFrameworkVersion
- Version
該屬性 EntityFrameworkVersions 對應於實體框架的目標版本。
- errors
- IList<EdmSchemaError>
一個 IList 的 EdmSchemaError。 建立過程中 StorageMappingItemCollection 產生的任何錯誤都會被加入清單。
傳回
StorageMappingItemCollection A 包含指定的元資料。