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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.1
    • 1.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: