MutableEntityTypeExtensions.RootType(IMutableEntityType) 方法

定义

注意

Use GetRootType

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

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

参数

entityType
IMutableEntityType

要查找其根的类型。

返回

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

属性

适用于