C# 数据库 There is already an open DataReader associated with this Command which must b
来源:互联网 发布:painter软件 编辑:程序博客网 时间:2024/05/29 03:57
在c#编程时我想让整个程序公用一个连接,不过我发现我想法太单纯了,遇到了题目中所说的:There is already an open DataReader associated with this Command which must ...问题。
上网找了一些技术博客,有一些解决方案是关于数据库池的(EXCUSE ME,太高级了,我不会啊)
于是我找到了一个比较简单解决方案
每一次都重新建立连接,在关掉链接,问题解决。
但是关于程序执行效率这块就不知道了,感觉肯定会慢啊。
阅读全文
0 0
- C# 数据库 There is already an open DataReader associated with this Command which must b
- LINQ: There is already an open DataReader associated with this Command which must be closed first
- 解决"There is already an open DataReader associated with this Command which must be closed first."
- EF "There is already an open DataReader associated with this Command which must be closed first."
- C#数据库操作错误:There is already an open DataReader associated with this Connection which must be closed..
- There is already an open DataReader associated with this Command which must be closed first的错误解决办法
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first
- 一例发生在cshtml页面中的There is already an open DataReader associated with this Command which must be closed
- There is already an open datareader associated with this command引发的问题
- There is already an open DataReader associated with this Command (十)
- There is already an open DataReader associated ……
- Ant报错Open quote is expected for attribute "*A" associated with an element type "*B"
- This file is already open in an editor
- Graphic is already associated with another layer
- Open quote is expected for attribute "{1}" associated with an element type "name".
- Open quote is expected for attribute "property" associated with an element type "result".
- 关于安装完MyEclipse之后的一系列配置操作
- pointerArray
- poj-1979-Red and Black
- mac上Python多版本共存
- js笔记
- C# 数据库 There is already an open DataReader associated with this Command which must b
- 扯淡的bug--shiro
- springboot 发送邮件
- 进程池与线程池---实现服务器
- js设计模式之 --工厂模式
- 学习Linux命令(44)
- 最短路算法包
- [HAOI2005]BZOJ1055 玩具取名
- 使用OpenCV的OpenCL(ocl)模块