Share via


IEntityType.FindProperties(IReadOnlyList<String>) 方法

定義

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

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

參數

propertyNames
IReadOnlyList<String>

屬性名稱。

傳回

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

實作

備註

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

適用於