Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-5319

Remove AsDateTime and similar deprecated methods from BsonValue

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change
    • Dotnet Drivers
    • Needed
    • Hide

      We uniformed the DateTime related properties to the methods in BsonValue. 

      What we did is:

      Remove AsDateTime (use AsUniversalTime instead)
      Remove AsNullableDateTime (use AsNullableUniversalTime instead)

      Keep AsLocalTime (remove [Obsolete] attribute)
      Keep AsUniversalTime (remove [Obsolete] attribute)

      Add AsNullableLocalTime
      Add AsNullableUniversalTime

      Show
      We uniformed the DateTime related properties to the methods in BsonValue.  What we did is: Remove  AsDateTime  (use  AsUniversalTime  instead) Remove  AsNullableDateTime  (use  AsNullableUniversalTime  instead) Keep  AsLocalTime  (remove  [Obsolete]  attribute) Keep  AsUniversalTime  (remove  [Obsolete]  attribute) Add  AsNullableLocalTime Add  AsNullableUniversalTime

          Assignee:
          ferdinando.papale@mongodb.com Ferdinando Papale
          Reporter:
          ferdinando.papale@mongodb.com Ferdinando Papale
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: