IModel.FindLeastDerivedEntityTypes 方法

定义

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

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IEntityType> FindLeastDerivedEntityTypes (Type type, Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType,bool>? condition = default);
abstract member FindLeastDerivedEntityTypes : Type * Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType, bool> -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
override this.FindLeastDerivedEntityTypes : Type * Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType, bool> -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
Public Overridable Function FindLeastDerivedEntityTypes (type As Type, Optional condition As Func(Of IReadOnlyEntityType, Boolean) = Nothing) As IEnumerable(Of IEntityType)

参数

type
Type

基类型。

condition
Func<IReadOnlyEntityType,Boolean>

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

返回

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

注解

有关详细信息和示例,请参阅 为实体类型和关系建模

适用于