LINQ to SQL 异常:SQL Server does not handle comparison of NText, Text, Xml, or Image data types
2010-11-30 22:59
567 查看
如果你使用LINQ to SQL过程中遇到异常:SQL Server does not handle comparison of NText, Text, Xml, or Image data types,可能你的数据库表字段中使用了NText,Text,Xml或者Image类型,你需要为dbml自动生成类的相应属性的Attribute添加上UpdateCheck=Never。
需要注意xml在dbml对于的类型为XElement,XElement是引用类型,如果需要对该字段进行更新,不能直接修改,需要重新创建一个XElement,否则所做的修改无法更新到数据库。
参考链接:Linq to SQL throws an exception when a column is of type ntext
需要注意xml在dbml对于的类型为XElement,XElement是引用类型,如果需要对该字段进行更新,不能直接修改,需要重新创建一个XElement,否则所做的修改无法更新到数据库。
参考链接:Linq to SQL throws an exception when a column is of type ntext
相关文章推荐
- "SQL Server does not handle comparison of NText, Text, Xml, or Image data types."
- Windows Phone 数据库,删除提示 SQL Server does not handle comparison of NText, Text, Xml, or Image data types
- XML or text declaration not at start of entity异常的原因
- To Trie or not to Trie – a comparison of efficient data structures
- ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
- ps_3_0 does not allow textures or samplers to be members of compound types
- SQL Server setup media does not support the language of the OS or does not have ENU localized files.
- Microsoft SQL Server 2008 R2 XML处理 One solution is to increase the number of characters retrieved from the server for XML data.
- Error: 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'
- Potential causes of the "SQL Server does not exist or access denied" error message
- ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
- 海洋工作室——网站建设专家:The version of SQL Server in use does not support datatype datetime2 and the Entity Framework.
- SQL The data types ntext and varchar are incompatible in the not equal to operator 错误
- SQL Server setup media does not support the language of the OS or does not have ENU localized files.
- 关于Linq to sql 应用时出现的一个‘row not found or changed’ 异常
- 尝试通过使用 TCP/IP 套接字连接到群集中的 SQL Server 命名实例时收到“SQL Server does not exist or access denied”(SQL Server 不存在,或者访问被拒绝)错误消息
- 三大框架整合异常之No Hibernate Session bound to thread, and configuration does not allow creation of non-tran
- the application is not licensed to create or modify schema for this type of data