Udostępnij za pośrednictwem


ConventionEntityTypeExtensions.RootType(IConventionEntityType) Metoda

Definicja

Przestroga

Use GetRootType

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

[System.Obsolete("Use GetRootType")]
public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
[<System.Obsolete("Use GetRootType")>]
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
<Extension()>
Public Function RootType (entityType As IConventionEntityType) As IConventionEntityType

Parametry

entityType
IConventionEntityType

Typ do znalezienia katalogu głównego.

Zwraca

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

Atrybuty

Dotyczy