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

Add LINQ3 support for untyped CreateQuery

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Unknown Unknown
    • 2.19.0
    • 2.18.0
    • LINQ3
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: