i have an app written for 2008.
We are using linq to entities.
We've now had to switch the DB to 2005. I am getting the following error on linq SELECT queries:
Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
The offending line is:
DateOfBirth = ((s.Date_Of_Birth == null) || (s.Date_Of_Birth <= lowdate)) ?
DateTime.MinValue : s.Date_Of_Birth.Value,
DateOfBirth is of type DateTime and a property in our own business object (not entity).
Anyone know how i can modify this line to make this query run?