From 2c83311b42d14d9f0f4ca2820cda6bfd414847ce Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Mon, 13 Jan 2025 08:51:19 -0800 Subject: [PATCH 1/2] add GUID to BSON mapping bullet --- source/upgrade/v3.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/upgrade/v3.txt b/source/upgrade/v3.txt index 54ca6344..b7c74918 100644 --- a/source/upgrade/v3.txt +++ b/source/upgrade/v3.txt @@ -116,7 +116,10 @@ Version 3.0 Breaking Changes - The ``BsonBinaryData.GuidRepresentation`` property has been removed. - You can call the ``BsonBinaryData.ToGuid()`` method only on ``BsonBinaryData`` objects of subtype 4. If the object has any other subtype, you must call the - ``BsonBinaryData.ToGuid(GuidRepresentation)`` method and specify the subtype. + ``BsonBinaryData.ToGuid(GuidRepresentation)`` method and specify the subtype. + - GUID conversion by using the ``BsonTypeMapper`` class has been removed. To + convert ```GUID`` values to BSON, use the ``BsonBindaryData(guid, + GuidRepresentation.Standard)`` constructor. The preceding changes affect your application only if you serialize and deserialize BSON documents directly. If you map your MongoDB documents only to :ref:`csharp-poco`, From 235265816cbe4223eeb34eb8cb0b66740f8387f2 Mon Sep 17 00:00:00 2001 From: Jordan Smith Date: Mon, 13 Jan 2025 09:07:36 -0800 Subject: [PATCH 2/2] typo --- source/upgrade/v3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/upgrade/v3.txt b/source/upgrade/v3.txt index b7c74918..c79003e6 100644 --- a/source/upgrade/v3.txt +++ b/source/upgrade/v3.txt @@ -118,7 +118,7 @@ Version 3.0 Breaking Changes objects of subtype 4. If the object has any other subtype, you must call the ``BsonBinaryData.ToGuid(GuidRepresentation)`` method and specify the subtype. - GUID conversion by using the ``BsonTypeMapper`` class has been removed. To - convert ```GUID`` values to BSON, use the ``BsonBindaryData(guid, + convert ``GUID`` values to BSON, use the ``BsonBindaryData(, GuidRepresentation.Standard)`` constructor. The preceding changes affect your application only if you serialize and deserialize