为了方便的访问数据,微软自己封装了一个数据访问模块, 即Data Access Application Block. 通过它,我们用来访问数据库的编码量大大减少了. 这样的代码既有效率,又减少了出现错误的几率,其益处是可见的. 下面举两个例子比较一下 1. 使用一般的sql语句进行控件绑定, 常规代码如下: 1//Create the connection and sql to be executed2string strConnTxt = "Server=(local);Database=Northwind;Integrated Security=True;";3stri Read More
posted @ 2009-08-05 10:18
汉卿
Views(186)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号