EntityTypeExtensions.IsStrictlyDerivedFrom(IEntityType, IEntityType) Methode

Definition

Bestimmt, ob dieser Entitätstyp von einem bestimmten Entitätstyp abgeleitet wird (aber nicht mit einem bestimmten Entitätstyp identisch ist).

public static bool IsStrictlyDerivedFrom (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType baseType);
static member IsStrictlyDerivedFrom : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
<Extension()>
Public Function IsStrictlyDerivedFrom (entityType As IEntityType, baseType As IEntityType) As Boolean

Parameter

entityType
IEntityType

Der Entitätstyp.

baseType
IEntityType

Der Entitätstyp, um zu überprüfen, ob es sich um einen Basistyp von entityTypehandelt.

Gibt zurück

true , wenn entityType von abgeleitet wird (ist aber nicht identisch mit) baseType, andernfalls false.

Gilt für: