共用方式為


StorageMappingItemCollection 建構函式 (EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

使用指定的 EdmItemCollectionStoreItemCollection 和 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>
)

參數

請參閱

參考

StorageMappingItemCollection 類別

StorageMappingItemCollection 多載

System.Data.Entity.Core.Mapping 命名空間