Skip to content

Commit 6672dda

Browse files
committed
first draft
1 parent d3c0037 commit 6672dda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/upgrade.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ Version 3.0 Potential Breaking Change
102102
- TLS 1.0 and 1.1 are no longer supported. You must use TLS 1.2 or higher. To learn
103103
more about configuring TLS/SSL in the {+driver-short+}, see :ref:`<csharp-tls>`.
104104

105+
- In previous versions of the driver, if a field had the C# data type ``Decimal128`` or
106+
``decimal``, the driver serialized the value as a BSON ``string`` by default. In
107+
version 3.0, the driver defaults to serializing these values as BSON ``Decimal128``
108+
values instead.
109+
To serialize a a ``decimal`` or ``Decimal128`` value as a string,
110+
you must apply the ``[BsonRepresentation(BsonType.String)]`` attribute to the field.
111+
112+
To learn more about serialization, see the :ref:`csharp-serialization` guide.
113+
105114
.. _csharp-breaking-changes-2.28.0:
106115

107116
Version 2.28.0 Potential Breaking Change

0 commit comments

Comments
 (0)