Sdílet prostřednictvím


EntityTypeExtensions.LeastDerivedType(IEntityType, IEntityType) Metoda

Definice

Získá nejmenší odvozený typ mezi zadanými dvěma.

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType LeastDerivedType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType otherEntityType);
static member LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function LeastDerivedType (entityType As IEntityType, otherEntityType As IEntityType) As IEntityType

Parametry

entityType
IEntityType

Typ entity.

otherEntityType
IEntityType

Druhý typ entity, se kterým se má porovnávat.

Návraty

Nejmenší odvozený typ mezi zadanými dvěma. Pokud dané typy entit nesouvisejí, null vrátí se příkaz .

Platí pro