[CSHARP-121] [BsonRepresentation(BsonType.String)] does not work as expected when decorating Guids Created: 03/Dec/10 Updated: 02/Apr/15 Resolved: 10/Dec/10 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 0.9 |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Justin Dearing | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Description |
|
If I have an object with a property: [BsonRepresentation(BsonType.String)] Callign ToJson() on an that object leads to the folling being generated: |
| Comments |
| Comment by Robert Stam [ 10/Dec/10 ] |
|
Added representation options to a bunch of types. Probably all that are needed. |
| Comment by Robert Stam [ 03/Dec/10 ] |
|
Added support for serializing ObjectId to String representation. Still need to determine what other types should have additional representations when serialized. |
| Comment by Robert Stam [ 03/Dec/10 ] |
|
Added support for serializing Guids as strings. Leaving the bug open as a reminder that there are a few other types that would be nice to serialize as strings also. |