Share via


IModel.FindEntityTypes(Type) 方法

定義

取得符合指定型別的實體類型。

[System.Diagnostics.DebuggerStepThrough]
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IEntityType> FindEntityTypes (Type type);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member FindEntityTypes : Type -> seq<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
Public Function FindEntityTypes (type As Type) As IEnumerable(Of IEntityType)

參數

type
Type

要尋找之實體類型的類型。

傳回

找到的實體類型。

屬性

備註

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

適用於