会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
BAsil
<h4>I am nobody,but I have a dream.</h4> <!-- <marquee id="marq" direction=up height=60 scrollamount=1 scrolldelay=50> Basil <br><br>MSN:wang_hua_jie@hotmail.com <br><br>E-Mail:<a rel="nofollow noopener" href="mailto:hua_jie_wang@163.com">hua_jie_wang@163.com</a> </marquee>-->
随笔档案-2005年12月6日
[导入]SqlHelper的几个细节(原创)
2005-12-06 19:36 by BAsil, 193 阅读,
收藏
,
摘要: 最近研究了一下Microsoft的SqlHelper,设计的非常严谨,下面列一下几个细节的问题。1. 判断是否由SqlHelper内部方法打开connection,如果是内部打开的话,需要在执行完SqlCommand的时候将其关闭。 办法是在PrepareCommand中加入out bool mustcloseconnection,而在调用PrepareCommand方法中执行完SqlComm...
阅读全文
0 Comment
About