EntityTypeExtensions.GetAllBaseTypes(IEntityType) Method

Definition

Gets all types in the model from which a given entity type derives, starting with the root.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IEntityType> GetAllBaseTypes (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetAllBaseTypes : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
<Extension()>
Public Function GetAllBaseTypes (entityType As IEntityType) As IEnumerable(Of IEntityType)

Parameters

entityType
IEntityType

The entity type.

Returns

The base types.

Applies to