Share via


IModel.FindLeastDerivedEntityTypes Methode

Definition

Gibt die Entitätstypen zurück, die den am wenigsten abgeleiteten Typen des angegebenen entsprechen.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IEntityType> FindLeastDerivedEntityTypes (Type type, Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType,bool>? condition = default);
abstract member FindLeastDerivedEntityTypes : Type * Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType, bool> -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
override this.FindLeastDerivedEntityTypes : Type * Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType, bool> -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
Public Overridable Function FindLeastDerivedEntityTypes (type As Type, Optional condition As Func(Of IReadOnlyEntityType, Boolean) = Nothing) As IEnumerable(Of IEntityType)

Parameter

type
Type

Der Basistyp.

condition
Func<IReadOnlyEntityType,Boolean>

Eine optionale Bedingung zum Filtern von Entitätstypen.

Gibt zurück

Liste der Entitätstypen, die den am wenigsten abgeleiteten Typen des angegebenen entsprechen.

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellieren von Entitätstypen und Beziehungen .

Gilt für: