سؤال

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?

هل كانت مفيدة؟

المحلول

This answer was the answer to my question:

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top