Skip to content

Commit e8c67af

Browse files
DOCSP-46293 Add GUID to BSON mapping bullet (#408) (#410)
(cherry picked from commit 0189757) Co-authored-by: Jordan Smith <[email protected]>
1 parent 3603645 commit e8c67af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/upgrade/v3.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ Version 3.0 Breaking Changes
116116
- The ``BsonBinaryData.GuidRepresentation`` property has been removed.
117117
- You can call the ``BsonBinaryData.ToGuid()`` method only on ``BsonBinaryData``
118118
objects of subtype 4. If the object has any other subtype, you must call the
119-
``BsonBinaryData.ToGuid(GuidRepresentation)`` method and specify the subtype.
119+
``BsonBinaryData.ToGuid(GuidRepresentation)`` method and specify the subtype.
120+
- GUID conversion by using the ``BsonTypeMapper`` class has been removed. To
121+
convert ``GUID`` values to BSON, use the ``BsonBindaryData(<GUID>,
122+
GuidRepresentation.Standard)`` constructor.
120123

121124
The preceding changes affect your application only if you serialize and deserialize
122125
BSON documents directly. If you map your MongoDB documents only to :ref:`csharp-poco`,

0 commit comments

Comments
 (0)