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

Support automatically generating Id values of type BsonObjectId as well as ObjectId

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1
    • Affects Version/s: 1.0
    • Component/s: None
    • None

      The C# driver can automatically generate Id values for the following class:

      public class C

      { public ObjectId Id; public int X; }

      But if the data type of Id is BsonObjectId instead of ObjectId it can't. It should handle BsonObjectId in the same way as ObjectId.

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

              Created:
              Updated:
              Resolved: