06 2019 档案
There is already an open DataReader associated with this Command which must be closed first
摘要:通常出现在嵌套查询数据库(比如在一个qry的遍历时,又进行了数据库查询) 通过在连接字符串中允许MARS可以轻松解决这个问题。 将MultipleActiveResultSets = true添加到连接字符串的提供程序部分 阅读全文
posted @ 2019-06-10 18:50 Gu 阅读(761) 评论(0) 推荐(0) 编辑
C#语法一些简化备忘
摘要:有些传统的写法,可以简写,之前没留意到,现在才注意到 IDE0031: Null check can be simplified 可以改成 IDE0029 可以简化 Null 检查。 可以改成 如果 ?? 运算符的左操作数非空,该运算符将返回左操作数,否则返回右操作数。 IDE0037 member 阅读全文
posted @ 2019-06-04 13:06 Gu 阅读(823) 评论(0) 推荐(0) 编辑