Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-43525 - Decimal128 #240

Merged
merged 5 commits into from
Oct 1, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions source/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ Version 3.0 Potential Breaking Change
- TLS 1.0 and 1.1 are no longer supported. You must use TLS 1.2 or higher. To learn
more about configuring TLS/SSL in the {+driver-short+}, see :ref:`<csharp-tls>`.

- By default, the driver serializes ``Decimal128`` and ``decimal`` values as BSON
``Decimal128`` values. In previous versions of the driver,
the driver serialized these values as BSON ``string`` values
by default.
To serialize a ``decimal`` or ``Decimal128`` value as a string in v3.0,
apply the ``[BsonRepresentation(BsonType.String)]`` attribute to the field.
mongoKart marked this conversation as resolved.
Show resolved Hide resolved

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

.. _csharp-breaking-changes-2.28.0:

Version 2.28.0 Potential Breaking Change
Expand Down
Loading