Sdílet prostřednictvím


IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) Metoda

Definice

Vrátí nejbližší typ entity, který je nadřazený oběma daným typům entit. Pokud je jedna z daných entit nadřazená druhé entitě, vrátí se tento nadřazený objekt. Vrátí hodnotu null , pokud dva typy entit nejsou ve stejné 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

Jiný typ entity.

Návraty

Nejbližší společný nadřazený objekt tohoto typu entity a otherEntityType, nebo null pokud nemají společný nadřazený objekt.

Platí pro