Språk

JsonQueryExpression.FindJsonElement(IPropertyBase) Method

Definition

Finds the IRelationalJsonElement for the given property/navigation/complex property within the JSON column referenced by this expression by matching JsonColumn's underlying Column against ContainingColumn, or returns null if no such element exists (including when JsonColumn has no underlying Column, e.g. for synthetic JSON expansions over OPENJSON / json_each, or for iterated properties such as shadow keys that have no JSON representation).

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

Parameters

propertyBase
IPropertyBase

The property, navigation or complex property to look up.

Returns

The JSON element mapping for propertyBase, or null if not found.

Applies to