LINQ3: Translate f % d == r in filters

XMLWordPrintableJSON

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

      Translate:

      collection.Where(x => x.F % d == r)
      

      to:

      { $match : { F : { $mod : [d, r] } } }
      

      and translate:

      collection.Where(x => x.F % d != r)
      

      to:

      { $match : { $nor : [{ F : { $mod : [d, r] } }] } }
      

              Assignee:
              Robert Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: