LINQ3: Translate Count comparisons 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 the following three forms of Count comparisons:

      collection.Where(x => x.L.Count == n)
      collection.Where(x => x.E.Count() == n)
      collection.Where(x => x.E.LongCount() == n)
      

      to:

      { $match : { l : { $size : n } }
      { $match : { e : { $size : n } }
      { $match : { e : { $size : n } }
      

      And also translate != Count comparisons.

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

                Created:
                Updated:
                Resolved: