RelationalTypeBaseExtensions.GetJsonPropertyName(IReadOnlyTypeBase) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得用於對應至 JSON 資料行之指定實體的 JSON 屬性名稱值。
public static string? GetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase typeBase);
static member GetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase -> string
<Extension()>
Public Function GetJsonPropertyName (typeBase As IReadOnlyTypeBase) As String
參數
- typeBase
- IReadOnlyTypeBase
類型。
傳回
用來儲存此類型的 JSON 屬性值。
null
針對未對應至 JSON 資料行的實體,會傳回 。
備註
除非明確設定,否則會使用導覽名稱。