-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LINQKit does not support referencing expressions stored in properties (InvalidCastException) #124
Comments
Hello @sdanyliv, thanks for noticing. If you have time, can you add an extra UnitTest for this scenario? If this is green, then I can close this issue. |
@poizan42 : Can you please try |
It fixes the case I wrote in this issues. But it does not work with deeper nesting, e.g. the test ExpressionCombiner_ExpressionAsProperty_FromExpressionVariable still fails. |
Updated PR #127 with fix. |
PR is merged. |
Running the following program:
Fails with
This may be related to #89 where it's a delegate rather than an expression in a property that causes problems.
The text was updated successfully, but these errors were encountered: