ConventionModelExtensions.FindLeastDerivedEntityTypes Method

Definition

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

public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> FindLeastDerivedEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type, Func<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType,bool> condition = default);
static member FindLeastDerivedEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * Func<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType, bool> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
<Extension()>
Public Function FindLeastDerivedEntityTypes (model As IConventionModel, type As Type, Optional condition As Func(Of IConventionEntityType, Boolean) = Nothing) As IReadOnlyList(Of IConventionEntityType)

Parameters

model
IConventionModel

The model to find the entity types in.

type
Type

The base type.

condition
Func<IConventionEntityType,Boolean>

An optional condition for filtering entity types.

Returns

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

Applies to