Skip to content

Conversation

maca88
Copy link
Contributor

@maca88 maca88 commented Sep 15, 2020

Fix for a regression made by #2335.

Fixes #2537

@fredericDelaporte fredericDelaporte added this to the 5.3.4 milestone Sep 15, 2020
@@ -157,7 +157,9 @@ private Expression EvaluateSubtree(Expression subtree)

private bool ContainsVariable(Expression expression)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maca88 can this method be moved to NhEvaluatableExpressionFilter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately not, it was placed here due to #2458, to evaluate expression like string.Fromat("{0}", variable).

@hazzik hazzik merged commit 63e82b7 into nhibernate:5.3.x Sep 17, 2020
bahusoid pushed a commit to bahusoid/nhibernate-core that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to cast "System.Linq.Expressions.UnaryExpression" to "System.Linq.Expressions.LambdaExpression".
4 participants