ConventionModelExtensions.FindLeastDerivedEntityTypes 方法

定义

返回对应于给定 中最少派生类型的实体类型。

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)

参数

model
IConventionModel

要查找实体类型的模型。

type
Type

基类型。

condition
Func<IConventionEntityType,Boolean>

用于筛选实体类型的可选条件。

返回

对应于给定 中最少派生类型的实体类型的列表。

适用于