数据库中保存日期为NULL
程序中查出来判断的时候提示如下:
解决方案:
if ( model.LZ007 != null &&
model.LZ007 > DateTime.MinValue &&
model.LZ007 < DateTime.MaxValue )
dateTimePicker1.Value = model.LZ007;
数据库中保存日期为NULL
程序中查出来判断的时候提示如下:
解决方案:
if ( model.LZ007 != null &&
model.LZ007 > DateTime.MinValue &&
model.LZ007 < DateTime.MaxValue )
dateTimePicker1.Value = model.LZ007;