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