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>

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

傳回

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

適用於