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

Allow options in driver for escaping and unescaping string keys containing dollar and dot with preferred substitution

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.0
    • Component/s: BSON
    • None

      Currently we have to do manual work arounds when storing dictionaries of type Dictionary<string,?> in Mongo as there will be runtime exceptions if the string key ever contains a dollar or dot. We would like the option to specify an escape sequence for these characters in the driver. E.g. We currently use the \x<ascii-hexcode> format for escaping them ($ = \x24 . = \x2E)

            Assignee:
            scott.lhommedieu@mongodb.com Scott L'Hommedieu (Inactive)
            Reporter:
            OliverD Oliver D&#39;Alton [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: