[CSHARP-231] Support automatically generating Id values of type BsonObjectId as well as ObjectId Created: 20/May/11  Updated: 02/Apr/15  Resolved: 27/May/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1

Type: New Feature Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.


Generated at Wed Feb 07 21:36:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.