IReadOnlyEntityType.FindProperties(IReadOnlyList<String>) 方法

定義

在指定的實體類型上尋找相符的屬性。 如果找不到任何屬性,則傳 null 回 。

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty>? FindProperties (System.Collections.Generic.IReadOnlyList<string> propertyNames);
abstract member FindProperties : System.Collections.Generic.IReadOnlyList<string> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty>
Public Function FindProperties (propertyNames As IReadOnlyList(Of String)) As IReadOnlyList(Of IReadOnlyProperty)

參數

propertyNames
IReadOnlyList<String>

屬性名稱。

傳回

屬性,如果 null 找不到任何屬性,則為 。

備註

此 API 只會尋找純量屬性,而且找不到導覽屬性。

適用於