DateTime2 conversion Error in a DB with no DateTime2 Columns

I am getting this error when I save my changes using EF:

"The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated."

Funny thing is that I don't have ANY DateTime2 columns in my database. (I just double checked using this query.)

I also did a solution wide search to see if the text DateTime2 is in there anywhere. It comes up empty.

So, if my model does not have DateTime2 and my DB does not have DateTime2, why is EF converting from a DateTime2?

Answers


This answer was the answer to my question:

http://stackoverflow.com/a/4708344/16241


Need Your Help

Import data from two tables without join in apache solr

solr

We are using apache solr to implement search in our application.

preventing a table from pushing a float-left div down

css

I have two float:left divs that are designed to stack left-to-right, one is the classic left nav and has a fixed width declared. The other is designed to span the rest of the width of the browser ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.