Skip to content

Commit 6385e66

Browse files
authored
DOCSP-43525 - Decimal128 (#240)
1 parent 96367e1 commit 6385e66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

source/upgrade/v3.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,13 @@ Version 3.0 Breaking Changes
106106
:ref:`csharp-serialization` guide.
107107

108108
- TLS 1.0 and 1.1 are no longer supported. You must use TLS 1.2 or higher. To learn
109-
more about configuring TLS/SSL in the {+driver-short+}, see :ref:`<csharp-tls>`.
109+
more about configuring TLS/SSL in the {+driver-short+}, see :ref:`<csharp-tls>`.
110+
111+
- By default, the driver serializes ``Decimal128`` and ``decimal`` values as BSON
112+
``Decimal128`` values. In previous versions of the driver, the driver serialized these
113+
values as BSON ``string`` values by default.
114+
To serialize a ``decimal`` or ``Decimal128`` value as a string in v3.0,
115+
apply the ``[BsonRepresentation(BsonType.String)]`` attribute to the field.
116+
117+
To learn more about specifying BSON types during serialization, see the
118+
:ref:`Custom Serialization <csharp-custom-serialization>` section of the POCOs page.

0 commit comments

Comments
 (0)