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

LINQ3 provider: MongoDB.Driver.Linq.ExpressionNotSupportedException: Expression not supported: 1 in (1 == 1)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 2.19.2
    • 2.19.1
    • LINQ3
    • None
    • Fully Compatible
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

    Description

      Summary

      The latest MongoDB.Driver for C# switched the default LINQ Provider from 2 to 3. After trying to upgrade and use version 3 the code that used to work in V2 fails in V3.

      Server versions: 5.0.13 Windows and 5.0.10 Ubuntu

      How to Reproduce

      See comments below

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            suikevil Roberto Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: