-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
BinaryExpression.AndAlso with user defined method #28992
Comments
As far as I can tell, you can't create an What are you trying to achieve? Would it make sense for you to use a custom boolean type instead of |
I write data provider for EFCore (translator of C# to SQL). I want to transform generated expression tree - I can change the node arguments and node methods. Of course, I may transform "AndAlso" node to generic MethodCall node, but in this case I should rewrite lots of EFCore code (optimizer / SQL-generator). I really not understand a current limitation of BinaryExpression.AndAlso. |
@dmitry-lipetsk, as @svick mentioned, the overloads of Please note, we are limiting changes to System.Linq.Expressions to addressing significant bugs and regressions. We are unlikely to take other changes at this time. See README.md. |
I think, It is a not actual issue not only to me but at all. If I rememeber correctly, I used MethodCall nodes to solve this problems. |
Hello,
I want to create 'AndAlso' expression object, which will use my implementation of operation method:
And got the exception from:
https://github.com/dotnet/corefx/blob/f7539b726c4bc2385b7f49e5751c1cff2f2c7368/src/System.Linq.Expressions/src/System/Linq/Expressions/BinaryExpression.cs#L827-L838
It is possible change the BinaryExpression.AndAlso for allow my simple scenario?
As I understand, same problem will be with OrOlse expression...
Also, I want to create 'AndAlso' expression, which will use method:
private static Nullable<Boolean> Exec_V_V(Nullable<Boolean> a,Nullable<Boolean> b)
Thanks.
The text was updated successfully, but these errors were encountered: