ConventionEntityTypeExtensions.FindProperties 方法

定義

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

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

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

參數

entityType
IConventionEntityType

實體類型。

propertyNames
IReadOnlyList<String>

屬性名稱。

傳回

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

適用於