The length of the string exceeds the value set on the maxJsonLength property(字符串的长度超过maxjsonlength上设置的值) webservice从后端获取数据时,系统提示“The length of the string exceeds the value set on the maxJsonLength property” 解决方案: 1.Json数据的长度超过了默认的102400!2.若数据量过大,则会…
最近使用entityframewok生成数据库,使用dapper来访问数据库,产生了一个意外的bug,下面是产生bug的示例以及解决方案. 由于用entityframework生成数据库,默认情况entityframewok 将bool?转换为tinyint(1), 使用dapper查询数据时报错(部分数据为空,部分数据不为空,且查询出来的第一条是可为空的数据才会出现问题,否则不会报错). 1.定义一个类: public class BugNullable { public…