Compartilhar via


IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) Método

Definição

Retorna o tipo de entidade mais próximo que é um pai de ambos os tipos de entidade fornecidos. Se uma das entidades fornecidas for pai da outra, esse pai será retornado. Retornará null se os dois tipos de entidade não estiverem na mesma hierarquia.

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

Outro tipo de entidade.

Retornos

O pai comum mais próximo desse tipo de entidade e otherEntityTypeou null se eles não tiverem um pai comum.

Aplica-se a