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

Add support for $documents in LINQ

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

      In CSHARP-4220 we added support for the $documents stage using the aggregation builder APIs.

      This ticket is about adding similar support in LINQ.

      The syntax could look like this:

      var result = database.AsQueryable()
          .Documents(documents)
          // more LINQ

      Note that there currently is not an AsQueryable method on database (only on collection), so this would be a new method.

      Also, the LINQ machinery currently assumes that all LINQ queries are against a collection, so before the LINQ version of Documents can be implemented the LINQ machinery will have to be refactored to allow queries against either a collection or a database.

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: