摘要: 报错信息:Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities we 阅读全文
posted @ 2017-12-20 12:39 大稳·杨 阅读(3578) 评论(3) 推荐(1)
摘要: 报错信息:LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression 参考 阅读全文
posted @ 2017-12-20 12:35 大稳·杨 阅读(482) 评论(0) 推荐(0)
摘要: 在EF 中使用mysql关联取数据时,如果当前实体中包含另一个实体的list成员,而这个成员为空的话,在json序列化的时候就会报错: '((System.Data.Entity.DynamicProxies.T_Module_FA775BC9946D7E533F86AFE9B59A3A33C411 阅读全文
posted @ 2017-12-20 08:53 大稳·杨 阅读(1165) 评论(0) 推荐(1)
摘要: 1.中文乱码问题 利用ef更新数据到mysql数据库中,中文就会变成乱码"???",就算把mysql的数据库的编码设置为"utf8"也会变成乱码,从网上查询了下, 在数据连接字符串后面加上:Character Set=utf8;即可,这样插入mysql的中文就不会变成乱码了。 2.HTML文本乱码问 阅读全文
posted @ 2017-12-20 08:41 大稳·杨 阅读(2850) 评论(2) 推荐(1)