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

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 2.7.0
    • Fix Version/s: None
    • Component/s: Bson
    • Labels:
      None

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: