-
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
When using variable in a .Select() from parent .SelectMany() scope I get an InvalidOperationException #12239
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-3.0
type-bug
Milestone
Comments
Although the first query shouldn't throw an exception, note that the LINQ queries aren't 100% equivalent. The second query will be compiled as
|
In 3.1
|
smitpatel
added a commit
that referenced
this issue
Aug 26, 2020
Since projection binding can come from parent query expression too Resolves #12239
smitpatel
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Aug 26, 2020
smitpatel
added a commit
that referenced
this issue
Aug 26, 2020
Since projection binding can come from parent query expression too Resolves #12239
ghost
pushed a commit
that referenced
this issue
Aug 27, 2020
Since projection binding can come from parent query expression too Resolves #12239
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-3.0
type-bug
When using a call to
.Select()
from within a.SelectMany()
call, if I reference the variable from the.SelectMany()
scope I get anInvalidOperationException
, I would expect this to work the same way it does in EF6, as the left side of a join.Steps to reproduce
Here's an example project that demonstrates the issue: EFCoreBugs.SelectManyBug.zip
Following is code that throws the excption:
But I would expect it to work the same way as:
Further technical details
EF Core version: 2.1.0 (still exists in 2.2.0-preview1-34386)
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10 Version 1709 (OS Build 16299.431)
IDE: Visual Studio 2017 15.7.3
The text was updated successfully, but these errors were encountered: