[CSHARP-1421] Missing the generated ObjectId after inserting an object Created: 23/Sep/15 Updated: 23/Sep/15 Resolved: 23/Sep/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jürgen Stolz [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
MongoDB 3.0 |
||
| Attachments: |
|
| Description |
|
After inserting an object into the database the genrated ObjectID isn´t returned. In the google mongodb-csharp group exists a thread :InsertOneAsync(..) How do I get the ObjectId after insertion. I included a main (VisualStudio 2013 console project) and the dependend packages.config |
| Comments |
| Comment by Jürgen Stolz [X] [ 23/Sep/15 ] | ||||||||||||||||||||||||||
|
Sorry please close the jira. After changing the Class.Type from BsonDocument to the real Class.Type DBContentBase it worked.
modified source code
|