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

Allow constant to appear on either side of comparison operator in LINQ queries

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4.1
    • Affects Version/s: 1.4
    • Component/s: None
    • None

      Treat the following as equivalent:

      from c in collection.AsQueryable<C>() where c.X > 0 select c;
      from c in collection.AsQueryable<C>() where 0 < c.X select c;

      and similarly for other operators.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: