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

Partial Update in MongoDB C# Driver - Dictionary issue

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.5
    • Component/s: None
    • Environment:
      Windows 7, .Net Framework 4

      Following the question here: http://stackoverflow.com/questions/12088370/partial-update-in-mongodb-c-sharp-driver-dictionary-issue

      The problem occurs when trying to do a partial update (using UpdateBuilder) to an object which holds a dictionary, no matter what types of key-value. The dictionary is not serializing well (at least not as expected) when using ToBsonDocument().
      When trying to fetch the object after the update, we get de-serialization errors (depends on the type), the one I get in the test program is: Input string was not in the correct format.

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

              Created:
              Updated:
              Resolved: