0%

SQL Server does not handle comparison of NText, Text, Xml, or Image data types.解决方法

当表中包含有NText,Text,Xml,Image的列时,使用DataContext.SubmitChanges() ,只要修改或者删除,都会报SQL Server does not handle comparison of NText, Text, Xml, or Image data types,这是因为Linq会比例所有的列.解决方法:给主键加上IsVersion=true属性.