Sdílet prostřednictvím


IModel.FindLeastDerivedEntityTypes Metoda

Definice

Vrátí typy entit odpovídající nejméně odvozených typů z daného typu.

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)

Parametry

type
Type

Základní typ.

condition
Func<IReadOnlyEntityType,Boolean>

Volitelná podmínka pro filtrování typů entit.

Návraty

Seznam typů entit odpovídajících nejméně odvozených typům z daného typu

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relací .

Platí pro