-
-
Notifications
You must be signed in to change notification settings - Fork 394
Description
Hello!
After upgrading from 2.18 to 2.19 i got this weird error when evaulating an expression.
An example of the error stack:
Exception has occurred: CLR/System.InvalidOperationException
Exception thrown: 'System.InvalidOperationException' in System.Linq.Expressions.dll: 'variable 'FK_Country' of type 'System.String' referenced from scope '', but it is not defined'
at System.Linq.Expressions.Compiler.VariableBinder.Reference(ParameterExpression node, VariableStorageKind storage)
at System.Linq.Expressions.Compiler.VariableBinder.VisitParameter(ParameterExpression node)
at System.Linq.Expressions.ExpressionVisitor.VisitBinary(BinaryExpression node)
at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection1 nodes) at System.Linq.Expressions.Compiler.VariableBinder.VisitLambda[T](Expression
1 node)
at System.Linq.Expressions.LambdaExpression.Compile()
ParameterExpression[0]
[0] [ParameterExpression] ={FK_Country}
CanReduce [bool] =false
DebugView [string] ="$FK_Country"
IsByRef [bool] =false
Name [string] ="FK_Country"
NodeType [ExpressionType] =Parameter
Type [Type] ={System.String}
The expressions is just a simple Eval( "FK_Country != "France"" )
Expression debug view : {(FK_Country != "France")}
Hope it can helps!