IEntityType.FindClosestCommonParent(IEntityType) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定された両方のエンティティ型の親である最も近いエンティティ型を返します。 指定されたエンティティのいずれかが他方のエンティティの親である場合、その親が返されます。 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
の親がない場合は 。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework