sqlserver DateTime error

Oct 28, 2008 at 12:21 PM
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 5:14 PM
Edited Oct 28, 2008 at 5:15 PM
set it as nullable like:

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