diff --git a/source/upgrade/v3.txt b/source/upgrade/v3.txt index 66ec0a0c..c0619dc5 100644 --- a/source/upgrade/v3.txt +++ b/source/upgrade/v3.txt @@ -163,3 +163,15 @@ Version 3.0 Breaking Changes `Double.PositiveInfinity, `__ and `Double.NegativeInfinity. `__ on MSDN. + +- The driver includes the following changes to the ``BsonValue`` class: + + - Removes the ``[Obsolete]`` attribute from the ``AsLocalTime`` and + ``AsUniversalTime`` properties. + - Adds the `AsNullableLocalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableLocalTime.html#MongoDB_Bson_BsonValue_AsNullableLocalTime>`__ + and `AsNullableUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__ + properties. + - Removes the ``AsDateTime`` property. Use the `AsUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsUniversalTime.html#MongoDB_Bson_BsonValue_AsUniversalTime>`__ + property instead. + - Removes the ``AsNullableDateTime`` property. Use the `AsNullableUniversalTime <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.AsNullableUniversalTime.html#MongoDB_Bson_BsonValue_AsNullableUniversalTime>`__ + property instead. \ No newline at end of file