EntityTypeExtensions.GetClosestCommonParent(IEntityType, IEntityType) Yöntem

Tanım

Dikkat

Use IReadOnlyEntityType.FindClosestCommonParent

Verilen varlık türlerinin üst öğesi olan en yakın varlık türünü döndürür. Verilen varlıklardan biri diğerinin üst öğesi ise bu üst öğe döndürülür. nullİki varlık türünün aynı hiyerarşide olup olmadığını döndürür.

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType GetClosestCommonParent (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType1, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType2);
[System.Obsolete("Use IReadOnlyEntityType.FindClosestCommonParent")]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType? GetClosestCommonParent (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType1, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType2);
static member GetClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Obsolete("Use IReadOnlyEntityType.FindClosestCommonParent")>]
static member GetClosestCommonParent : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function GetClosestCommonParent (entityType1 As IEntityType, entityType2 As IEntityType) As IEntityType

Parametreler

entityType1
IEntityType

Bir varlık türü.

entityType2
IEntityType

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

Döndürülenler

IEntityType

En yakın ortak üst öğesi entityType1 ve entityType2 , ortak üst öğe değilse null.

Öznitelikler

Şunlara uygulanır