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

LINQ3: Simplify translations for logical negation

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None

      Add an AstFilter.Not factory method that applies logical negation in a more sophisticated way:

      1. Use $not when possible and $nor otherwise
      2. Two $not cancel each other out
      3. Two single filter $nor cancel each other out
      4. Negated $eq becomes $ne and vice versa

       

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

              Created:
              Updated:
              Resolved: