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

LINQ3: Refactor support for StartsWith/Contains/EndsWith to use $expr instead of regular expressions

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: LINQ3
    • Labels:
      None

      Now that the server supports $expr in filters we can translate StartsWith/Contains/EndsWith using aggregation operators instead of regular expressions.

      While the resulting translations are somewhat longer than the regular expressions they replace, they are rather direct mappings from C# to MQL and should therefore be easier to understand and less bug prone.

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

              Created:
              Updated:
              Resolved: