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>

篩選實體類型的選擇性條件。

傳回

對應至指定中最小衍生類型的實體類型清單。

適用於