We're updating the issue view to help you get more done. 

Linq ExpressionParameterVisitor adapted to allow "dynamic" constants

Description

We've had a situation here where we were trying to make linq queries on a "constant" parameter which could change regarding the end user situation.

The query was exactuted nicely, although, the query plan cache was considering it was the same query even when that query was changing.

We patched 4.0.3 with those 3 lines of ExpressionParameterVisitor to make the cache dependent of the constant value.
And we propose you to integrate this (git) patch

Environment

None

Status

Assignee

Alexander Zaytsev

Reporter

Sÿl

Components

Affects versions

4.0.3

Priority

Major