MutableEntityTypeExtensions.FindProperties 方法

定义

查找给定实体类型上的匹配属性。 null如果未找到任何属性,则返回 。

此 API 仅查找标量属性,而不查找导航属性。

public static System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> FindProperties (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<string> propertyNames);
static member FindProperties : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<string> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty>
<Extension()>
Public Function FindProperties (entityType As IMutableEntityType, propertyNames As IReadOnlyList(Of String)) As IReadOnlyList(Of IMutableProperty)

参数

entityType
IMutableEntityType

实体类型。

propertyNames
IReadOnlyList<String>

属性名称。

返回

属性;如果未找到任何属性,则为 。null

适用于