Details
-
Bug
-
Resolution: Unresolved
-
Minor - P4
-
None
-
1.9.2, 2.0
-
None
Description
I want to serialize following class:
public class TestModel_CustomNotId |
{
|
[BsonElement("id")] |
public ObjectId Id { get; set; } |
}
|
I expected Id field to be serialized as "id",
but the result BSON document is containing "_id" field.
fix example:
https://github.com/ExM/mongo-csharp-driver/commit/264d2d912d73ddad5ebb9edc91f765a03f33e450