Share via


MetadataWorkspace.RegisterItemCollection 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 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 命名空间