I\'m attempting to use the DataSet designer to create a datatable from a query. I got this down just fine. The query used returns a nullable datetime column from the datab
In DataSet Designer, use System.Object data type instead of System.DateTime and set NullValue to (Null) and DefaultValue to and when it is needed, convert it such as:
var row1 = dateSet1.table1.FirstOrDefault();
if (row1 == null)
return;
DateTime? date = (DateTime?) row1.ObjectDate;