IModel.FindLeastDerivedEntityTypes Method

Definition

Returns the entity types corresponding to the least derived types from the given.

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)

Parameters

type
Type

The base type.

condition
Func<IReadOnlyEntityType,Boolean>

An optional condition for filtering entity types.

Returns

List of entity types corresponding to the least derived types from the given.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to