IReadOnlyModel.FindEntityTypes(Type) 方法

定义

获取与给定类型匹配的实体类型。

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

参数

type
Type

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

返回

找到的实体类型。

注解

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

适用于