JsonQueryExpression.FindJsonElement(IPropertyBase) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過將 的底層ColumnContainingColumn與 JsonColumn匹配,尋找該屬性/導覽/複雜屬性,並在此表達式參考的 JSON 欄位中尋找 ;IRelationalJsonElement若不存在此類元素則返回null(包括JsonColumn當 沒有底層Column元素時,例如對 OPENJSON / json_each 上的合成 JSON 擴充,或對於沒有 JSON 表示的迭代屬性如影子金鑰)。
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement? FindJsonElement(Microsoft.EntityFrameworkCore.Metadata.IPropertyBase propertyBase);
abstract member FindJsonElement : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement
override this.FindJsonElement : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.IRelationalJsonElement
Public Overridable Function FindJsonElement (propertyBase As IPropertyBase) As IRelationalJsonElement
參數
- propertyBase
- IPropertyBase
物業、航道或複雜財產需要查詢。
傳回
如果找不到,則是 的 JSON 元素映射propertyBasenull。