Skip to content

Commit cbb0b5c

Browse files
author
Gokhan Abatay
committed
convert method call parameter fix
1 parent 043df3c commit cbb0b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Linq/Visitors/ExpressionParameterVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected override Expression VisitUnary(UnaryExpression node)
152152
node.Operand is ConstantExpression constantExpression)
153153
{
154154
// Instead of getting constantExpression.Value, invoke method
155-
var value = node.Method.Invoke(null, null);
155+
var value = node.Method.Invoke(null, new[] { constantExpression.Value });
156156

157157
AddConstantExpressionParameter(constantExpression, value);
158158
}

0 commit comments

Comments
 (0)