EntityTypeExtensions.IsInOwnershipPath(IEntityType, IEntityType) Méthode

Définition

Obtient une valeur indiquant si le type d’entité donné se trouve dans le chemin d’accès de propriété pour ce type d’entité.

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

Paramètres

entityType
IEntityType

Type d'entité.

targetType
IEntityType

Type d’entité à rechercher dans le chemin de propriété.

Retours

true si targetType est dans le chemin de propriété de entityType, sinon false.

S’applique à