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

Add LINQ3 support for untyped CreateQuery

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

      LINQ2 supported creating queries from expression trees via the MongoQueryProviderImpl.CreateQuery (non-generic) method.

      This mechanism is used by the Dynamic LINQ (it first converts a textual query into an expression tree and the passes it to CreateQuery).

      LINQ3 doesn't provide an implementation of this method (MongoQueryProvider.CreateQuery just throws).

      It should be simple to re-add the support for LINQ3 as LINQ2 simply used reflection to create the fully typed query object.

       

      I'm unsure if this was deliberately omitted from v3, apologies if that's the case.

      Many thanks

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            alistair.steele@trapdoorlabs.uk Alistair Steele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: