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

Insert fails to set SetIdMember interface members values

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • 1.8.1
    • None
    • None
    • Windows 8, MongoDB Latest
    • Minor Change

    Description

      Using the same code as shown here: https://jira.mongodb.org/browse/CSHARP-708 I noticed that after updating to the 1.8.1 driver via NuGet that all my unit tests were failing. I tracked this down to the collection.Insert<T>(document) was failing to give an ObjectId value even though the representation was set to ObjectId for an interface member... Before and after the call to Insert the Id property value was null.

      If you need a sample, I can try to put one together.

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            bniemyjski Blake Niemyjski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: