EntityTypeExtensions.IsInOwnershipPath(IEntityType, IEntityType) Methode

Definition

Ruft einen Wert ab, der angibt, ob sich der angegebene Entitätstyp im Besitzpfad für diesen Entitätstyp befindet.

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

Parameter

entityType
IEntityType

Der Entitätstyp.

targetType
IEntityType

Entitätstyp, nach dem im Besitzpfad gesucht werden soll.

Gibt zurück

true , wenn targetType sich im Besitzpfad von entityTypebefindet, andernfalls false.

Gilt für: