DbModelExtensions 类
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
注意:此 API 现在已过时。
DbModel 的扩展方法。
继承层次结构
System.Object
System.Data.Entity.Core.Metadata.Edm.DbModelExtensions
命名空间: System.Data.Entity.Core.Metadata.Edm
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<ExtensionAttribute> _
<ObsoleteAttribute("ConceptualModel and StoreModel are now available as properties directly on DbModel.")> _
Public NotInheritable Class DbModelExtensions
用法
[ObsoleteAttribute("ConceptualModel and StoreModel are now available as properties directly on DbModel.")]
public static class DbModelExtensions
[ExtensionAttribute]
[ObsoleteAttribute(L"ConceptualModel and StoreModel are now available as properties directly on DbModel.")]
public ref class DbModelExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ObsoleteAttribute("ConceptualModel and StoreModel are now available as properties directly on DbModel.")>]
type DbModelExtensions = class end
public final class DbModelExtensions
DbModelExtensions 类型公开以下成员。
方法
名称 | 描述 | |
---|---|---|
![]() ![]() |
GetConceptualModel | 已过时。 从指定 DbModel 获取概念模型。 |
![]() ![]() |
GetStoreModel | 已过时。 从指定 DbModel 获取存储模型。 |
顶部
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。