Sdílet prostřednictvím


EntityTypeExtensions.GetRootType(IEntityType) Metoda

Definice

Získá kořenový základní typ pro daný typ entity.

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, pro který chcete najít kořen.

Návraty

Základní typ kořene. Pokud daný typ entity není odvozeným typem, vrátí se stejný typ entity.

Platí pro