ConventionModelExtensions.FindLeastDerivedEntityTypes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework