次の方法で共有


IMutableEntityType.FindClosestCommonParent(IReadOnlyEntityType) メソッド

定義

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? FindClosestCommonParent (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType otherEntityType);
abstract member FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
override this.FindClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Overridable Function FindClosestCommonParent (otherEntityType As IReadOnlyEntityType) As IMutableEntityType

パラメーター

otherEntityType
IReadOnlyEntityType

別のエンティティ型。

戻り値

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

適用対象