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

Support comparison operators with constant on left hand side

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.3
    • Affects Version/s: 2.0.1
    • Component/s: Linq
    • Labels:
    • Fully Compatible

      Comparison queries in LINQ where the constant is on the left hand side throw an ArgumentException.

      For example:

      collection.Find(user => DateTime.Now > user.UpdatedDate);

      Looks like a regression of CSHARP-431

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            sheilakinsella@gmail.com Sheila Kinsella
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: