IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) 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.
Retourne le type d’entité le plus proche qui est un parent des deux types d’entités donnés. Si l’une des entités données est un parent de l’autre, ce parent est retourné. Retourne null
si les deux types d’entités ne sont pas dans la même hiérarchie.
public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? FindClosestCommonParent (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType otherEntityType);
abstract member FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Public Overridable Function FindClosestCommonParent (otherEntityType As IReadOnlyEntityType) As IReadOnlyEntityType
Paramètres
- otherEntityType
- IReadOnlyEntityType
Autre type d’entité.
Retours
Parent commun le plus proche de ce type d’entité et otherEntityType
, ou null
s’ils n’ont pas de parent commun.