Udostępnij za pośrednictwem


ConventionEntityTypeExtensions.GetRootType(IConventionEntityType) Metoda

Definicja

Pobiera główny typ podstawowy dla danego typu jednostki.

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

Parametry

entityType
IConventionEntityType

Typ jednostki.

Zwraca

Główny typ podstawowy. Jeśli dany typ jednostki nie jest typem pochodnym, zwracany jest ten sam typ jednostki.

Dotyczy