2010年12月16日
摘要: 为了方便的访问数据,微软自己封装了一个数据访问模块, 即Data Access Application Block. 通过它,我们用来访问数据库的编码量大大减少了. 这样的代码既有效率,又减少了出现错误的几率,其益处是可见的. 下面举两个例子比较一下 1. 使用一般的sql语句进行控件绑定, 常规代码如下: 1//Create the connection and sql to be executed2string strConnTxt = "Server=(local);Database=Northwind;Integrated Security=True;";3string strSql 阅读全文
posted @ 2010-12-16 16:01 奥尔格勒 阅读(372) 评论(0) 推荐(0) 编辑