最佳答案
我已经根据2008年的数据库构建了一个实体框架模型。对于2008数据库,所有工作都正常。当我尝试更新2005数据库上的实体时,会得到这个错误。
The version of SQL Server in use does not support datatype 'datetime2
I specifically did not use any 2008 features when I built the database. I can't find any reference to datetime2 in the code. And, yes the column is defined as "datetime" in the database.