Skip to content

Commit 57fb380

Browse files
committed
first draft
1 parent 81160db commit 57fb380

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

source/upgrade/v3.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,16 @@ Version 3.0 Breaking Changes
152152
`Double.NaN, <https://learn.microsoft.com/en-us/dotnet/api/system.double.nan?view=net-8.0#system-double-nan>`__
153153
`Double.PositiveInfinity, <https://learn.microsoft.com/en-us/dotnet/api/system.double.positiveinfinity?view=net-8.0#system-double-positiveinfinity>`__
154154
and `Double.NegativeInfinity. <https://learn.microsoft.com/en-us/dotnet/api/system.double.negativeinfinity?view=net-8.0#system-double-negativeinfinity>`__
155-
on MSDN.
155+
on MSDN.
156+
157+
- The driver includes the following changes to the ``BsonValue`` class:
158+
159+
- Removes the ``[Obsolete]`` attribute from the ``AsLocalTime()`` and
160+
``AsUniversalTime()`` methods.
161+
- Adds the `AsNullableLocalTime() <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableLocalTime.html#MongoDB_Bson_BsonValue_AsNullableLocalTime>`__
162+
and `AsNullableUniversalTime() <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__
163+
methods.
164+
- Removes the ``AsDateTime()`` method. Use the `AsUniversalTime() <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsUniversalTime.html#MongoDB_Bson_BsonValue_AsUniversalTime>`__
165+
method instead.
166+
- Removes the ``AsNullableDateTime()`` method. Use the `AsNullableUniversalTime() <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__
167+
method instead.

0 commit comments

Comments
 (0)