Condividi tramite


IModel.FindLeastDerivedEntityTypes Metodo

Definizione

Restituisce i tipi di entità corrispondenti ai tipi meno derivati dall'oggetto specificato.

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)

Parametri

type
Type

Tipo di base.

condition
Func<IReadOnlyEntityType,Boolean>

Condizione facoltativa per filtrare i tipi di entità.

Restituisce

Elenco di tipi di entità corrispondenti ai tipi meno derivati dall'oggetto specificato.

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi di entità e relazioni .

Si applica a