RelationalComplexPropertyExtensions.GetJsonPropertyName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得用於映射到 JSON 欄位的複雜屬性的 JSON 屬性名稱值。
public static string? GetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexProperty complexProperty);
static member GetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexProperty -> string
<Extension()>
Public Function GetJsonPropertyName (complexProperty As IReadOnlyComplexProperty) As String
參數
- complexProperty
- IReadOnlyComplexProperty
複數性質。
傳回
用來儲存這個複雜屬性值的 JSON 屬性值。
null 對於未映射到 JSON 欄位的複雜屬性,會回傳
備註
除非明確設定,否則會使用複雜屬性名稱。