EntityTypeExtensions.GetRootType(IEntityType) Methode

Definition

Ruft den Stammbasistyp für einen bestimmten Entitätstyp ab.

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

Parameter

entityType
IEntityType

Der Typ, von dem der Stamm gefunden werden soll.

Gibt zurück

Der Stammbasistyp. Wenn der angegebene Entitätstyp kein abgeleiteter Typ ist, wird derselbe Entitätstyp zurückgegeben.

Gilt für: