Compartilhar via


IReadOnlyModel.FindLeastDerivedEntityTypes Método

Definição

Retorna os tipos de entidade correspondentes aos tipos menos derivados do determinado.

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType> 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.IReadOnlyEntityType>
override this.FindLeastDerivedEntityTypes : Type * Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType, bool> -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
Public Overridable Function FindLeastDerivedEntityTypes (type As Type, Optional condition As Func(Of IReadOnlyEntityType, Boolean) = Nothing) As IEnumerable(Of IReadOnlyEntityType)

Parâmetros

type
Type

O tipo base.

condition
Func<IReadOnlyEntityType,Boolean>

Uma condição opcional para filtrar tipos de entidade.

Retornos

Lista de tipos de entidade correspondentes aos tipos menos derivados do determinado.

Comentários

Confira Modelagem de tipos de entidade e relações para obter mais informações e exemplos.

Aplica-se a