Sdílet prostřednictvím


EntityTypeExtensions.IsInOwnershipPath(IEntityType, IEntityType) Metoda

Definice

Získá hodnotu označující, zda je daný typ entity v cestě vlastnictví pro tento typ entity.

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

Parametry

entityType
IEntityType

Typ entity.

targetType
IEntityType

Typ entity, který chcete vyhledat v cestě vlastnictví.

Návraty

true pokud targetType je v cestě vlastnictví , entityTypejinak false.

Platí pro