MetadataItemCollectionFactory.CreateStorageMappingItemCollection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 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
- storeCollection
- 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
- storeCollection
- StoreItemCollection
- readers
- IEnumerable<XmlReader>
包含中繼資料檔案之 IEnumerable 的 XmlReader。
- targetEntityFrameworkVersion
- Version
對應至目標 Entity Framework 版本之 EntityFrameworkVersions 的屬性。
- errors
- IList<EdmSchemaError>
IList 的 EdmSchemaError。 在 StorageMappingItemCollection 建立期間產生的任何錯誤都會加入到清單中。
傳回
包含指定之中繼資料的 StorageMappingItemCollection。