Udostępnij przez


EntityTypeExtensions.GetRootType(IEntityType) Metoda

Definicja

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

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

Parametry

entityType
IEntityType

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.

Dotyczy