Sdílet prostřednictvím


EntityTypeExtensions.RootType(IEntityType) Metoda

Definice

Upozornění

Use GetRootType

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

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[System.Obsolete("Use GetRootType")]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType RootType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Obsolete("Use GetRootType")>]
static member RootType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function RootType (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.

Atributy

Platí pro