Skip to content

Commit 0189757

Browse files
DOCSP-46293 Add GUID to BSON mapping bullet (#408)
1 parent e721d24 commit 0189757

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/upgrade/v3.txt

+4-1
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)