JsonQueryExpression Class

Definition

An expression representing an entity or a collection of entities mapped to a JSON column and the path to access it.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class JsonQueryExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
type JsonQueryExpression = class
    inherit Expression
    interface IPrintableExpression
Public Class JsonQueryExpression
Inherits Expression
Implements IPrintableExpression
Inheritance
JsonQueryExpression
Implements

Constructors

JsonQueryExpression(IEntityType, ColumnExpression, IReadOnlyDictionary<IProperty,ColumnExpression>, Type, Boolean)

Creates a new instance of the JsonQueryExpression class.

Properties

EntityType

The entity type being represented by this expression.

IsCollection

The value indicating whether this expression represents a collection.

IsNullable

The value indicating whether this expression is nullable.

JsonColumn

The column containing JSON value.

KeyPropertyMap

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

NodeType

Gets the node type of this Expression.

Path

The list of path segments leading to the entity from the root of the JSON stored in the column.

Type

Gets the static type of the expression that this Expression represents.

Methods

BindCollectionElement(SqlExpression)

Binds a collection element access with this JSON query expression to get the SQL representation.

BindNavigation(INavigation)

Binds a navigation with this JSON query expression to get the SQL representation.

BindProperty(IProperty)

Binds a property with this JSON query expression to get the SQL representation.

Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
MakeNullable()

Makes this JSON query expression nullable.

Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

Update(ColumnExpression, IReadOnlyDictionary<IProperty,ColumnExpression>)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Applies to