次の方法で共有


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
)

パラメーター

参照

参照

MetadataWorkspace クラス

System.Data.Entity.Core.Metadata.Edm 名前空間