-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Query: Using Or instead of ElseOr, etc. can result in unexpected SQL #7271
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Comments
tuespetre
added a commit
to tuespetre/EntityFramework
that referenced
this issue
Dec 30, 2016
…ConditionTranslatingVisitor Addresses dotnet#7271
This turned out not be because of the |
Assigning issue and PR to @smitpatel. |
smitpatel
added a commit
that referenced
this issue
Feb 4, 2017
smitpatel
added a commit
that referenced
this issue
Feb 4, 2017
smitpatel
added a commit
that referenced
this issue
Feb 7, 2017
smitpatel
added a commit
that referenced
this issue
Feb 7, 2017
Does someone have a workaround for this issue? |
Use |
Would |
Yes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
When I use two conditions joined by an OR, the result is not correct for SQL Server.
How can I fix it?
This is my LINQ code and result in SQL (that reflection created for me):
I added this
where
clause at runtime, now I add another extension method and it's not working:Exception:
SQL translated:
The correct SQL should have
= 1
before theAND
.But without sum its works fine and add a
= 1
to SQL commandThe text was updated successfully, but these errors were encountered: