打印本文 打印本文 关闭窗口 关闭窗口
第二课 SqlConnection对象(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数11088  更新时间:2007/11/14 13:12:47  文章录入:mintao  责任编辑:mintao
SqlConnection对象的需要是使你能够让其它的ADO.NET代码使用数据库。其它的ADO.NET对象,比如SqlCommandSqlDataAdapter使用connection对象作为参数。在SqlConnection的生命周期中发生的操作顺序如下:

  1. Instantiate the SqlConnection.
  2. Open the connection.
  3. Pass the connection to other ADO.NET objects.
  4. Perform data base operations with the other ADO.NET objects.
  5. Close the connection.

1.            实例化SqlConnection

2.            打开连接

3.            传递连接给其它的ADO.NET对象

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口