MutableEntityTypeExtensions.GetRootType(IMutableEntityType) Method

Definition

Gets the root base type for a given entity type.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetRootType (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetRootType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function GetRootType (entityType As IMutableEntityType) As IMutableEntityType

Parameters

entityType
IMutableEntityType

The entity type.

Returns

The root base type. If the given entity type is not a derived type, then the same entity type is returned.

Applies to