RuntimeEntityType.FindProperties(IEnumerable<String>) 方法

定义

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

public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty>? FindProperties (System.Collections.Generic.IEnumerable<string> propertyNames);
abstract member FindProperties : seq<string> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty>
override this.FindProperties : seq<string> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.RuntimeProperty>
Public Overridable Function FindProperties (propertyNames As IEnumerable(Of String)) As IReadOnlyList(Of RuntimeProperty)

参数

propertyNames
IEnumerable<String>

属性名称。

返回

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

注解

此 API 仅查找标量属性,而找不到导航或服务属性。

适用于