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

GetType not equals comparison translates incorrectly to MQL

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.1.0
    • Affects Version/s: 3.0.0
    • Component/s: Linq
    • None
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed

      The following query translates incorrectly:

      queryable.Where(x => x.GetType() != typeof(C))
      

      The translator for this is not checking the comparison operator used and is assuming it is always `==`.

            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: