File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,15 @@ Version 3.0 Potential Breaking Change
102
102
- TLS 1.0 and 1.1 are no longer supported. You must use TLS 1.2 or higher. To learn
103
103
more about configuring TLS/SSL in the {+driver-short+}, see :ref:`<csharp-tls>`.
104
104
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
+
105
114
.. _csharp-breaking-changes-2.28.0:
106
115
107
116
Version 2.28.0 Potential Breaking Change
You can’t perform that action at this time.
0 commit comments