[CSHARP-1441] Support transparent identifiers in SelectMany Created: 08/Oct/15  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Linq
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Craig Wilson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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 } }");
        }


Generated at Wed Feb 07 21:39:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.