BsonCollection.InsertBatch(new[] { new BsonDocument{ {_id:-1} } }) fails

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.9
    • Affects Version/s: 0.7
    • Component/s: None
    • None
    • Environment:
      windows 7, x64. vs2008sp1. .net 3.5
    • None
    • Major Change
    • None
    • None
    • None
    • None
    • None
    • None

      calling

      var data = new[] {
      new BsonDocument() { {_id:-1} }
      };
      BsonCollection col = ....
      var safe = SafeMode.WaitForReplications(2, TimeSpan.FromSeconds(2));
      col.InsertBatch(data, safe);

      will throw:
      MongoDB.Bson.BsonSerializationException : No idGenerator found for type: System.Int32

      This used to work on version 0.5 with my own object CRUD test.

            Assignee:
            Robert Stam
            Reporter:
            huy nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: