語言

JsonQueryExpression.GetJsonElement(IPropertyBase) 方法

定義

透過將 的底層ColumnContainingColumn與 匹配JsonColumn,來尋找該 JSON欄位中所給定屬性/導航/複雜屬性的 。IRelationalJsonElement 這消除了實體分割、TPT 和 TPC 情境,即同一屬性包含多個 JSON 元素映射——每個具體表格一個。 PropertyName 可能是 null 針對沒有 JSON 表示的影子金鑰;呼叫 GetProperties() 者必須處理該情況並跳過。

public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement GetJsonElement(Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
abstract member GetJsonElement : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement
override this.GetJsonElement : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement
Public Overridable Function GetJsonElement (propertyBase As IPropertyBase) As IRelationalJsonElement

參數

propertyBase
IPropertyBase

物業、航道或複雜財產需要查詢。

傳回

JSON 元素映射 propertyBase。

適用於