今天在寫ASP.NET MVC的測試案例時,發現Linq to Sql對於未指定的DateTime會發生錯誤,會發生「SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.」的錯誤訊息,像下面的錯誤提示:
2010-01-20
今天在寫ASP.NET MVC的測試案例時,發現Linq to Sql對於未指定的DateTime會發生錯誤,會發生「SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.」的錯誤訊息,像下面的錯誤提示: