MutableModelExtensions.FindLeastDerivedEntityTypes 方法

定义

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

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)

参数

model
IMutableModel

要查找实体类型的模型。

type
Type

基类型。

condition
Func<IMutableEntityType,Boolean>

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

返回

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

适用于