-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…nerate correct SQL if query also contains optional navigation Problem was that optional navigation is translated to GroupJoin which in turn forces materialization on entire entity. This causes some result operators (e.g. Distinct) to be applied on all columns of that entity, even if the customer specified a subset of columns to perform Distinct on. Fix is to evaluate result operators on the client if their result depends on whether it was applied to a single column or entire row, and the query also contains GroupJoin. Operators that can still be safely translated to SQL: Skip, Take, FirstOrDefault, Count, All, Any.
- Loading branch information
Showing
4 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters