IEntityType.FindClosestCommonParent(IEntityType) Methode

Definition

Gibt den nächstgelegenen Entitätstyp zurück, der ein übergeordnetes Element beider Entitätstypen ist. Wenn eine der angegebenen Entitäten ein übergeordnetes Element der anderen ist, wird dieses übergeordnete Element zurückgegeben. Gibt zurück null , wenn sich die beiden Entitätstypen nicht in derselben Hierarchie befinden.

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

Parameter

otherEntityType
IEntityType

Ein anderer Entitätstyp.

Gibt zurück

Das nächstgelegene gemeinsame übergeordnete Element dieses Entitätstyps und otherEntityType, oder null , wenn sie kein gemeinsames übergeordnetes Element haben.

Gilt für: