How do I resolve issues with unsupported DateTimeOffsets in EF 6 using Sql Server?

社会主义新天地 提交于 2019-12-04 18:34:46

Facepalm! This issue was caused by a typo in the name of the connection string in the config file.

Once I made sure the name of the connection string in the config matched the one supplied to the DbContext the problem disappeared.

Of course, I was not helped by the exception that was thrown.

I'm listing this here as an answer so that someone else in the future might find this answer, or at the very least know that this kind of exception can be thrown in a variety of situations.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!