打印本文 打印本文 关闭窗口 关闭窗口
第一课 ADO.NET简介(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3234  更新时间:2009/4/23 10:36:01  文章录入:mintao  责任编辑:mintao
ADO.NET is the .NET technology for interacting with data sources.  You have several Data Providers, which allow communication with different data sources, depending on the protocols they use or what the data base is.  Regardless, of which Data Provider used, you''''ll use a similar set of objects to interact with a data source.  The SqlConnection object lets you manage a connection to a data source.  SqlCommand objects allow you to talk to a data source and send commands to it.  To have fast forward-only read access to data, use the SqlDataReader.  If you want to work with disconnected data, use a DataSet and implement reading and writing to/from the data source with a SqlDataAdapter.

ADO.NET是与数据源交互的.NET技术。有许多的Data Providers,它将允许与不同的数据源交流――取决于它们所使用的协议或者数据库。然而无论使用什么样的Data Provider,你将使用相似的对象与数据源进行交互。SqlConnection对象管理与数据源的连接。SqlCommand对象允许你与数据源交流并发送命令给它。为了对进行快速的只“向前”地读取数据,使用SqlDataReader。如果想使用断开数据,使用DataSet并实现能进行读取或者写入数据源的SqlDataAdapter。

This is just the beginning - the first of several lessons in the ADO.NET Tutorial.  The next one in this series is Lesson 02:  The SqlConnection Object.

这只是开始――在ADO.NET指南中的第一部分的课程。这一系列的下一讲是Lesson 02:  SqlConnection 对象

For further questions, you are welcome to participate in the C# Station Discussion Forums.

Your feedback is very important and I appreciate any constructive contributions you have.  Please feel free to contact me for feedback or comments you may have about this lesson.

 

 

上一页  [1] [2] [3] [4] 

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