Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4558

Support IEnumerable.TypeOf<>() in find() projections

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: LINQ3

      Turn a LINQ3 projection such as: 

      players.find(p => true, p => new { SoccerGames = p.games.TypeOf<Soccer>() })

      into something like:

      db.players.find( {}, { games: { $elemMatch: { _t: "Soccer" } } } )

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            jasperli@sortspoke.com Jasper Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: