EntityTypeExtensions.RootType(IEntityType) 方法

定义

注意

Use GetRootType

获取给定实体类型的根基类型。

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[System.Obsolete("Use GetRootType")]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Obsolete("Use GetRootType")>]
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function RootType (entityType As IEntityType) As IEntityType

参数

entityType
IEntityType

要查找其根的类型。

返回

根基类型。 如果给定的实体类型不是派生类型,则返回相同的实体类型。

属性

适用于