Skip to content

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

Closed

Description

@smitpatel
        [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);
        }

Activity

  1. added this to the Backlog milestone on Aug 28, 2020
  2. changed the title [-]Collection include on nested entity in projection[/-] [+]Collection include on nested entity in projection with split-include[/+] on Aug 28, 2020
  3. changed the title [-]Collection include on nested entity in projection with split-include[/-] [+]Collection include on nested entity in projection with split Include[/+] on Aug 28, 2020
  4. modified the milestones: Backlog, 6.0.0 on Nov 5, 2020
  5. added 3 commits that reference this issue on Apr 21, 2021
    07a79eb
    6e4f0f2
    32f42cb
  6. added 3 commits that reference this issue on Apr 21, 2021
    883bcc1
    15b23bd
    4634aba
  7. ghost closed this as completedin #24706on Apr 22, 2021
  8. ghost added a commit that references this issue on Apr 22, 2021
    c734abc
  9. modified the milestones: 6.0.0, on Apr 26, 2021
  10. modified the milestones: , 6.0.0 on Nov 8, 2021
  11. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions