IReadOnlyModel.FindLeastDerivedEntityTypes 方法

定義

傳回對應至指定中最小衍生型別的實體型別。

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType> 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.IReadOnlyEntityType>
override this.FindLeastDerivedEntityTypes : Type * Func<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType, bool> -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
Public Overridable Function FindLeastDerivedEntityTypes (type As Type, Optional condition As Func(Of IReadOnlyEntityType, Boolean) = Nothing) As IEnumerable(Of IReadOnlyEntityType)

參數

type
Type

基底類型。

condition
Func<IReadOnlyEntityType,Boolean>

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

傳回

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

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於