Aracılığıyla paylaş


IMutableEntityType.FindClosestCommonParent(IReadOnlyEntityType) 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.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

Parametreler

otherEntityType
IReadOnlyEntityType

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