StorageMappingItemCollection 建構函式 (EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
使用指定的 EdmItemCollection、StoreItemCollection 和 XML 讀取器,初始化 StorageMappingItemCollection 類別的新執行個體。
命名空間: System.Data.Entity.Core.Mapping
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")> _
Public Sub New ( _
edmCollection As EdmItemCollection, _
storeCollection As StoreItemCollection, _
xmlReaders As IEnumerable(Of XmlReader) _
)
'用途
Dim edmCollection As EdmItemCollection
Dim storeCollection As StoreItemCollection
Dim xmlReaders As IEnumerable(Of XmlReader)
Dim instance As New StorageMappingItemCollection(edmCollection, _
storeCollection, xmlReaders)
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public StorageMappingItemCollection(
EdmItemCollection edmCollection,
StoreItemCollection storeCollection,
IEnumerable<XmlReader> xmlReaders
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2214:DoNotCallOverridableMethodsInConstructors")]
public:
StorageMappingItemCollection(
EdmItemCollection^ edmCollection,
StoreItemCollection^ storeCollection,
IEnumerable<XmlReader^>^ xmlReaders
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")>]
new :
edmCollection:EdmItemCollection *
storeCollection:StoreItemCollection *
xmlReaders:IEnumerable<XmlReader> -> StorageMappingItemCollection
public function StorageMappingItemCollection(
edmCollection : EdmItemCollection,
storeCollection : StoreItemCollection,
xmlReaders : IEnumerable<XmlReader>
)
參數
- edmCollection
類型:System.Data.Entity.Core.Metadata.Edm.EdmItemCollection
此對應所要使用的 EdmItemCollection。
- storeCollection
類型:System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
此對應所要使用的 StoreItemCollection。
- xmlReaders
類型:System.Collections.Generic.IEnumerable<XmlReader>
此對應所要使用的 XML 讀取器。
請參閱
參考
StorageMappingItemCollection 類別