We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043df3c commit cbb0b5cCopy full SHA for cbb0b5c
src/NHibernate/Linq/Visitors/ExpressionParameterVisitor.cs
@@ -152,7 +152,7 @@ protected override Expression VisitUnary(UnaryExpression node)
152
node.Operand is ConstantExpression constantExpression)
153
{
154
// Instead of getting constantExpression.Value, invoke method
155
- var value = node.Method.Invoke(null, null);
+ var value = node.Method.Invoke(null, new[] { constantExpression.Value });
156
157
AddConstantExpressionParameter(constantExpression, value);
158
}
0 commit comments