Condividi tramite


IConventionEntityType.FindClosestCommonParent(IReadOnlyEntityType) Metodo

Definizione

Restituisce il tipo di entità più vicino padre di entrambi i tipi di entità specificati. Se una delle entità indicate è un elemento padre dell'altro, tale padre viene restituito. Restituisce null se i due tipi di entità non si trovano nella stessa gerarchia.

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? FindClosestCommonParent (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType otherEntityType);
abstract member FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
override this.FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Overridable Function FindClosestCommonParent (otherEntityType As IReadOnlyEntityType) As IConventionEntityType

Parametri

otherEntityType
IReadOnlyEntityType

Un altro tipo di entità.

Restituisce

Padre comune più vicino di questo tipo di entità e otherEntityType, o null se non hanno padre comune.

Si applica a