When designing data tables in the .xsd designer in Visual Studio, there is a property that specifies what to do when the table encounters a null value:
The problem is, if the DataType
is System.DateTime
, I'm unable to return empty
or nothing
. It always throws an exception.
As I work around, I can do the following:
<!-- language: lang-vb -->If(row.IsDateLastRecallPrintedNull, DateTime.MinValue, row.DateLastRecallPrinted)
But if the value is DbNull.Value
, I'd rather just have it return that.