Skip to content
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

Collection include on nested entity in projection with split Include #22283

Closed
smitpatel opened this issue Aug 28, 2020 · 0 comments · Fixed by #24706
Closed

Collection include on nested entity in projection with split Include #22283

smitpatel opened this issue Aug 28, 2020 · 0 comments · Fixed by #24706
Assignees
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@smitpatel
Copy link
Member

        [ConditionalTheory]
        [MemberData(nameof(IsAsyncData))]
        public virtual Task Include_in_let_followed_by_FirstOrDefault(bool async)
        {
            return AssertQuery(
                async,
                ss => from c in ss.Set<Customer>()
                      let order = ss.Set<Order>().Where(o => o.CustomerID == c.CustomerID)
                        .OrderBy(o => o.OrderDate)
                        .Include(o => o.OrderDetails)
                        .FirstOrDefault()
                      where c.CustomerID.StartsWith("F")
                      select new
                      {
                          c.CustomerID,
                          Order = order
                      },
                elementSorter: e => e.CustomerID,
                elementAsserter: (e, a) => AssertEqual(e.Order, a.Order),
                entryCount: 26);
        }
@ajcvickers ajcvickers added this to the Backlog milestone Aug 28, 2020
@ajcvickers ajcvickers changed the title Collection include on nested entity in projection Collection include on nested entity in projection with split-include Aug 28, 2020
@ajcvickers ajcvickers changed the title Collection include on nested entity in projection with split-include Collection include on nested entity in projection with split Include Aug 28, 2020
@ajcvickers ajcvickers modified the milestones: Backlog, 6.0.0 Nov 5, 2020
@smitpatel smitpatel added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Apr 21, 2021
smitpatel added a commit that referenced this issue Apr 21, 2021
smitpatel added a commit that referenced this issue Apr 21, 2021
smitpatel added a commit that referenced this issue Apr 22, 2021
@ghost ghost closed this as completed in #24706 Apr 22, 2021
ghost pushed a commit that referenced this issue Apr 22, 2021
@ajcvickers ajcvickers modified the milestones: 6.0.0, 6.0.0-preview5 Apr 26, 2021
@ajcvickers ajcvickers modified the milestones: 6.0.0-preview5, 6.0.0 Nov 8, 2021
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. type-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants