c# - Get all null date rows? -


i trying null date rows api object. api date2 has value {1/1/0001 12:00:00 am} , sql table value has null. how check date? null or {1/1/0001 12:00:00 am}?

var results = (from customerdemographic customerdemographic in customerdata.demographics customerdemographic.date2 == null                  select new models.communitypreferences()                   {                       ....                       ...                    }).tolist(); 

if getting {1/1/0001 12:00:00 am}than means datetime.minvalue , not getting nullable<datetime> back. can modify check like:

customerdemographic.date2 == datetime.minvalue 

but better option modify mapping class use datetime? or nullable<datetime> property date2. using datetime not nullable.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -