打印本文 打印本文 关闭窗口 关闭窗口
第五课 使用断开数据--DataSet和SqlDataAdapter(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数15901  更新时间:2007/11/14 13:12:43  文章录入:mintao  责任编辑:mintao

Until now, you''''ve seen the pieces required to implement disconnected data managment.  What you really need is to see all this implemented in an application.  Listing 1 shows how the code from all the previous sections is used in a working program that has been simplified to enhance the points of this lesson:

直到现在,你看到的代码片断需要实现断开数据管理。你真正需要的看看所有这些在一个应用程序如何实现。Listing1展示了从前面的代码断如何在程序中运作的,它已经简要的增强了本课的重点:

Listing 1: Implementing a Disconnected Data Management Strategy

using System;

using System.Data;

using System.Data.SqlClient;

using System.Drawing;

using System.Windows.Forms;

 

class DisconnectedDataForm : Form

{

        private SqlConnection  conn;

        private SqlDataAdapter daCustomers;

 

        private DataSet  dsCus

 << 上一页  [11] [12] [13] [14] [15] [16] [17] [18]  下一页

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