Share via


ShapedQueryExpression.UpdateQueryExpression(Expression) Method

Definition

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.

public virtual Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression UpdateQueryExpression (System.Linq.Expressions.Expression queryExpression);
abstract member UpdateQueryExpression : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
override this.UpdateQueryExpression : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Public Overridable Function UpdateQueryExpression (queryExpression As Expression) As ShapedQueryExpression

Parameters

queryExpression
Expression

The QueryExpression property of the result.

Returns

This expression if shaper expression did not change, or an expression with the updated shaper expression.

Applies to