-
Notifications
You must be signed in to change notification settings - Fork 934
Support basic arithmetic operations (+, -, *, /) in QueryOver #2156
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
Conversation
Rebased to resolve conflict |
Related to #793 |
A bit moot in my view, I do not think such basic operator precedence should be explicited through parenthesis, especially when it matches mathematical rules. But so be it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is #793 obsoleted by this PR?
It was seemingly about adding these operators to criteria through new Projections
static methods such as Projections.Add
.
As I have never used much Criteria or QueryOver, I am a bit surprised this has been lacking.
No. For proper Criteria support dedicated methods (like |
Add support for queries like: