Skip to content

Commit 945ac4e

Browse files
committed
feedback
1 parent 1e049e4 commit 945ac4e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/upgrade.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +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,
105+
- By default, the driver serializes ``Decimal128`` and ``decimal`` values as BSON
106+
``Decimal128`` values. In previous versions of the driver,
107+
the driver serialized these values as BSON ``string`` values
108+
by default.
109+
To serialize a ``decimal`` or ``Decimal128`` value as a string in v3.0,
110110
apply the ``[BsonRepresentation(BsonType.String)]`` attribute to the field.
111111

112-
To learn more about serialization, see the :ref:`csharp-serialization` guide.
112+
To learn more about specifying BSON types during serialization, see the
113+
:ref:`Custom Serialization <csharp-custom-serialization>` section of the POCOs page.
113114

114115
.. _csharp-breaking-changes-2.28.0:
115116

0 commit comments

Comments
 (0)