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

Тип для поиска корня.

Возвращаемое значение

Корневой базовый тип. Если данный тип сущности не является производным, возвращается тот же тип сущности.

Атрибуты

Применяется к