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

要查找的实体类型的类型。

返回

找到的实体类型。

属性

注解

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

适用于