05 2011 档案
摘要:错误原因,在使用ado.net entity的时候,entity使用的数据库是sqlserver 2008,但后来实际使用中使用的数据库是sqlserver 2005
使用的 SQL Server 版本不支持数据类型“datetime2”
The version of SQL Server in use does not support datatype ‘datetime2
解决办法
Open your EDMX in a file editor (or “open with…” in Visual Studio and select XML Editor). At the top you will find the storage model and it has an attribute ProviderManifestToken. This has should have the value 2008. Change that to 2005, recompile and everything works.
就是打开你的edmx文件,搜索ProviderMan
阅读全文
摘要:asp.net entity 传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确。参数 3 ("@0"): 数据类型 0xA7 的数据长度或元数据长度无效。在我们用ado.net entity framework 做数据层提交数据时如果对应数据库有字段为text 类型时在SSDL中映射为Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><PropertyName="FBody"Type
阅读全文

浙公网安备 33010602011771号