海洋工作室——网站建设专家:The version of SQL Server in use does not support datatype datetime2 and the Entity Framework.
2010-03-21 08:16
1356 查看
by mikael 1. January 2009 19:00
This is due to the edmx file being generated or updated from a SQL 2008 instance and run against a SQL 2005 instance. I tried about every trick I could think of before reading about it here. Basically all you need to do is to open the EDMX file with XML Editor and change ProviderManifestToken=”2008” to ProviderManifestToken=”2005”. Thanks a bunch Alex Duggleby for the hint!
view source
print?
1.
<
Schema
2.
Namespace
=
"MobileNordic.MobileCMS.Domain.Store"
3.
Alias
=
"Self"
4.
Provider
=
"System.Data.SqlClient"
5.
ProviderManifestToken
=
"2005"
6.
xmlns:store
=
"http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator"
7.
xmlns
原文地址: http://blog.zoolutions.se/post/2009/01/01/The-version-of-SQL-Server-in-use-does-not-support-datatype-datetime2-and-the-Entity-Framework.aspx
相关文章推荐
- ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
- The version of SQL Server in use does not support datatype 'datetime2'.
- ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
- Error: The version of SQL Server in use does not support datatype 'datetime2'
- Error: The version of SQL Server in use does not support datatype 'datetime2
- HOW TO: Change the Owner of a User-Defined Data Type That Is in Use in SQL Server 2000
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- SQL Server setup media does not support the language of the OS or does not have ENU localized files.
- Description Resource Path Location Type Java compiler level does not match the version of the in解决方法
- eclipse部署Tomcat6 : The server does not support version 3.0 of the JEE Web module specification
- Description Resource Path Location Type Java compiler level does not match the version of the in...
- Description Resource Path Location Type Java compiler level does not match the version of the in解决方法
- The server does not support version 3.1 of the JEE Web module specification.
- Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
- 海洋工作室——网站建设专家:收藏,防止忘记:MIME Type Detection in Internet Explorer【主要是为了防止下载乱码】
- Could not store transport type data for Receive Location 'Recv.Loc' to config store. Primary SSO Server 'Sql-server' failed. The external credentials in the SSO database are more recent.
- The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.
- 错误: Could not edit the data in the folder or database selected. The current version does not support editing (base, consistent, or closed)
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- 100.In which situations does the Oracle Data Pump use external tables and not the direct path load w