Udostępnij przez


IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) Metoda

Definicja

Zwraca najbliższy typ jednostki, który jest elementem nadrzędnym obu typów jednostek. Jeśli jedna z podanych jednostek jest elementem nadrzędnym drugiego, zwracany jest ten element nadrzędny. Zwraca wartość null , jeśli dwa typy jednostek nie są w tej samej hierarchii.

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

Parametry

otherEntityType
IReadOnlyEntityType

Inny typ jednostki.

Zwraca

Najbliższy wspólny element nadrzędny tego typu jednostki i otherEntityType, lub null jeśli nie mają wspólnego elementu nadrzędnego.

Dotyczy