Aracılığıyla paylaş


IEntityType.FindClosestCommonParent(IEntityType) Yöntem

Tanım

Verilen her iki varlık türünün de üst öğesi olan en yakın varlık türünü döndürür. Verilen varlıklardan biri diğerinin üst öğesiyse, bu üst öğe döndürülür. İki varlık türü aynı hiyerarşide değilse döndürür null .

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

Parametreler

otherEntityType
IEntityType

Başka bir varlık türü.

Döndürülenler

Bu varlık türü ve otherEntityType'nin en yakın ortak üst öğesi veya null ortak üst öğeleri yoksa.

Şunlara uygulanır