LINQ to Entities produces query containing datetime2 on SQL 2005 Express

前端 未结 1 1260
忘掉有多难
忘掉有多难 2021-01-19 03:51

I\'ve got a LINQ to Entities app and a database project to manage the schema in a VS 2010 solution targetting .NET 4.0. The entity model is currently reverse engineered from

相关标签:
1条回答
  • 2021-01-19 04:23

    You need to change the ProviderManifestToken inside your EDMX to the value 2005. You probably generated your DB against a 2008 DB. Make this change and the EF will stop using 2008 syntax.

    0 讨论(0)
提交回复
热议问题