ShapedQueryExpression Class

Definition

An expression that combines a query expression and shaper expression.

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

public class ShapedQueryExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(QueryExpression), nq}")]
public class ShapedQueryExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
type ShapedQueryExpression = class
    inherit Expression
    interface IPrintableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(QueryExpression), nq}")>]
type ShapedQueryExpression = class
    inherit Expression
    interface IPrintableExpression
Public Class ShapedQueryExpression
Inherits Expression
Implements IPrintableExpression
Inheritance
ShapedQueryExpression
Attributes
Implements

Remarks

See Implementation of database providers and extensions and How EF Core queries work for more information and examples.

Constructors

ShapedQueryExpression(Expression, Expression)

Creates a new instance of the ShapedQueryExpression class with associated query and shaper expressions.

Properties

NodeType

Gets the node type of this Expression.

QueryExpression

An expression representing the query to be run against server to retrieve the data.

ResultCardinality

The cardinality of the results generated.

ShaperExpression

An expression representing the shaper to be run on the results fetched from the server.

Type

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

Methods

Print(ExpressionPrinter)
Update(Expression, Expression)

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.

UpdateQueryExpression(Expression)

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

UpdateResultCardinality(ResultCardinality)

Creates a new expression that is like this one, but with supplied result cardinality.

UpdateShaperExpression(Expression)

Creates a new expression that is like this one, but using the supplied shaper expression. If shaper expression is 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.

Explicit Interface Implementations

IPrintableExpression.Print(ExpressionPrinter)

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

Applies to