次の方法で共有


IReadOnlyEntityType.FindClosestCommonParent(IReadOnlyEntityType) メソッド

定義

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

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

パラメーター

otherEntityType
IReadOnlyEntityType

別のエンティティ型。

戻り値

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

適用対象