File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -102,14 +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,
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 ,
110
110
apply the ``[BsonRepresentation(BsonType.String)]`` attribute to the field.
111
111
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.
113
114
114
115
.. _csharp-breaking-changes-2.28.0:
115
116
You can’t perform that action at this time.
0 commit comments