I have a table with a DateTime column the column can have NULL values
Now I connect to the database using an ODBC connection and get the value into a DataTable in .n
If we are using EF and reading the database element in while loop then,
using( var idr = connection, SP.......) { while(idr.read()) { if(String.IsNullOrEmpty(idr["ColumnNameFromDB"].ToString()) //do something } }