MutableModelExtensions.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.IMutableEntityType> FindLeastDerivedEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type, Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType,bool> condition = default);
static member FindLeastDerivedEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, bool> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType>
<Extension()>
Public Function FindLeastDerivedEntityTypes (model As IMutableModel, type As Type, Optional condition As Func(Of IMutableEntityType, Boolean) = Nothing) As IReadOnlyList(Of IMutableEntityType)

Parameters

model
IMutableModel

The model to find the entity types in.

type
Type

The base type.

condition
Func<IMutableEntityType,Boolean>

An optional condition for filtering entity types.

Returns

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

Applies to