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

Driver should be able to support Nullable of primitive type

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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);

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

              Created:
              Updated:
              Resolved: