Share via


IEntityType.FindClosestCommonParent(IEntityType) メソッド

定義

指定された両方のエンティティ型の親である最も近いエンティティ型を返します。 指定されたエンティティのいずれかが他方のエンティティの親である場合、その親が返されます。 null 2 つのエンティティ型が同じ階層にない場合は を返します。

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

パラメーター

otherEntityType
IEntityType

別のエンティティ型。

戻り値

このエンティティ型と otherEntityTypeの最も近い共通親。共通 null の親がない場合は 。

適用対象