Condividi tramite


IEntityType.FindClosestCommonParent(IEntityType) 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.IEntityType? FindClosestCommonParent (Microsoft.EntityFrameworkCore.Metadata.IEntityType otherEntityType);
abstract member FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Overridable Function FindClosestCommonParent (otherEntityType As IEntityType) As IEntityType

Parametri

otherEntityType
IEntityType

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