Compartir a través de


IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) Método

Definición

Devuelve el tipo de entidad más cercano que es un elemento primario de ambos tipos de entidad especificados. Si una de las entidades especificadas es un elemento primario del otro, se devuelve ese elemento primario. Devuelve null si los dos tipos de entidad no están en la misma jerarquía.

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

Parámetros

otherEntityType
IReadOnlyEntityType

Otro tipo de entidad.

Devoluciones

Elemento primario común más cercano de este tipo de entidad y otherEntityType, o null si no tienen un elemento primario común.

Se aplica a