RelationalPropertyExtensions.GetJsonPropertyName(IReadOnlyProperty) 方法

定義

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

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

參數

property
IReadOnlyProperty

屬性。

傳回

用來儲存這個實體屬性值的 JSON 屬性值。 null 會針對索引鍵屬性和未對應至 JSON 資料行的實體屬性傳回 。

備註

除非明確設定,否則會使用實體屬性名稱。

適用於