RelationalEntityTypeExtensions.GetJsonPropertyName 方法

定義

取得用於對應至 JSON 資料行之指定實體的 JSON 屬性名稱值。

public static string? GetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetJsonPropertyName (entityType As IReadOnlyEntityType) As String

參數

entityType
IReadOnlyEntityType

實體類型。

傳回

用來儲存此實體類型的 JSON 屬性值。 null 會針對未對應至 JSON 資料行的實體傳回 。

備註

除非明確設定,否則會使用導覽名稱。

適用於