sqlserver DateTime error

Oct 28, 2008 at 11:21 AM
For table which has datetime column(s), the corresponding .net entity has DataTime property(ies). But if I leave the DateTime property(ies) unset, which has a value of 01/01/01, I can not save it, because the sqlserver datetime column can not have the value before 1753.
Seems that LINQ handle this well.

Any workaround?

Oct 28, 2008 at 4:14 PM
Edited Oct 28, 2008 at 4:15 PM
set it as nullable like:

public abstract DateTime? TheDate { get; set; }
Oct 29, 2008 at 5:30 AM
Got it done. Great. Thank you.