Support transparent identifiers in SelectMany

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: LINQ
    • None
    • 🔵 Done
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      The following test in MongoQueryableTests fails because SelectMany does not handle transparent identifiers well.

         [Test]
              public void SelectMany_with_collection_selector_with_a_transparent_identifier()
              {
                  var query = from x in CreateQuery()
                              from y in x.G
                              orderby x.Id
                              select new { x.B, y };
      
                  Assert(query,
                      4,
                      "{ $unwind: '$G' }",
                      "{ $project: { G: '$G', _id: 0 } }");
              }
      

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: