IEntityType.FindProperties(IReadOnlyList<String>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的實體類型上尋找相符的屬性。 如果找不到任何屬性,則傳 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 只會尋找純量屬性,而且找不到導覽屬性。