IReadOnlyEntityType.FindServiceProperty(String) 方法

定義

取得具有指定名稱的服務屬性。 null如果未定義具有指定名稱的屬性,則傳回 。

public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyServiceProperty? FindServiceProperty (string name);
abstract member FindServiceProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyServiceProperty
Public Function FindServiceProperty (name As String) As IReadOnlyServiceProperty

參數

name
String

服務屬性的名稱。

傳回

如果找不到服務屬性,則 null 為 。

備註

此 API 只會尋找服務屬性,而且找不到純量或流覽屬性。

適用於