MetadataWorkspace.RegisterItemCollection 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
注意:這個 API 現在已經過時。
將項目集合註冊到每個相關聯的資料模型。
命名空間: System.Data.Entity.Core.Metadata.Edm
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")> _
<ObsoleteAttribute("Construct MetadataWorkspace using constructor that accepts metadata loading delegates.")> _
Public Overridable Sub RegisterItemCollection ( _
collection As ItemCollection _
)
'用途
Dim instance As MetadataWorkspace
Dim collection As ItemCollection
instance.RegisterItemCollection(collection)
[SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[ObsoleteAttribute("Construct MetadataWorkspace using constructor that accepts metadata loading delegates.")]
public virtual void RegisterItemCollection(
ItemCollection collection
)
[SuppressMessageAttribute(L"Microsoft.Maintainability", L"CA1502:AvoidExcessiveComplexity")]
[ObsoleteAttribute(L"Construct MetadataWorkspace using constructor that accepts metadata loading delegates.")]
public:
virtual void RegisterItemCollection(
ItemCollection^ collection
)
[<SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")>]
[<ObsoleteAttribute("Construct MetadataWorkspace using constructor that accepts metadata loading delegates.")>]
abstract RegisterItemCollection :
collection:ItemCollection -> unit
[<SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")>]
[<ObsoleteAttribute("Construct MetadataWorkspace using constructor that accepts metadata loading delegates.")>]
override RegisterItemCollection :
collection:ItemCollection -> unit
public function RegisterItemCollection(
collection : ItemCollection
)
參數
- collection
類型:System.Data.Entity.Core.Metadata.Edm.ItemCollection
需要裝滿的輸出參數集合。