ConventionEntityTypeExtensions.RootType(IConventionEntityType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Use GetRootType
获取给定实体类型的根基类型。
[System.Obsolete("Use GetRootType")]
public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
[<System.Obsolete("Use GetRootType")>]
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
<Extension()>
Public Function RootType (entityType As IConventionEntityType) As IConventionEntityType
参数
- entityType
- IConventionEntityType
要查找其根的类型。
返回
根基类型。 如果给定的实体类型不是派生类型,则返回相同的实体类型。
- 属性