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

Driver should be able to support Nullable of primitive type

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.7
    • None
    • None
    • None

    Description

      I couldn't save nullable type of datetime via mongo c# driver. I think it should be supported by default

      =========================

      public class TestClass
      {
      DateTime? Now

      { get; set; }

      }

      var test = new TestClass
      {
      Now = null
      }

      collection.Save(test);

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            ensecoz Payut M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: