[CSHARP-90] Driver should be able to support Nullable of primitive type Created: 30/Oct/10  Updated: 20/Mar/14  Resolved: 30/Oct/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.7

Type: New Feature Priority: Major - P3
Reporter: Payut M Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


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



 Comments   
Comment by Robert Stam [ 30/Oct/10 ]

Implement in master.

Comment by Robert Stam [ 30/Oct/10 ]

Agreed. Will implement soon.

Generated at Wed Feb 07 21:35:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.