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

LINQ3: Translate string.Length == n in filters

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

      Translate:

      document.S.Length == n 

      to:

      { S : /^.{n}$/s } 

      in filters. Also support other comparisons (<, <=, !=, >=, >).

      Translate `document.S.Count() == n` in the same way as `Length`.

      As usual, support ToLower, ToUpper, Trim, TrimEnd and TrimStart between `document.S` and `Length`

            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: