EntityTypeExtensions.IsInOwnershipPath(IEntityType, IEntityType) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.