具有单个数据集的多个DataAdapter [英] More than one DataAdapters with single Dataset

查看:117
本文介绍了具有单个数据集的多个DataAdapter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的。



我的问题是,我们可以使用多个dataAdapter和单个DataSet吗?



Dear all.

My question is that Can we use more than one dataAdapters with single DataSet like this ???

Adapter1.Update (dataTable1);
Adapter2.Update (dataTable2);
Adapter3.Update (dataTable3)





单个数据集包含这3个DataTable。如果是,那么每个适配器可以包含不同的SelectCommand或总是相同的SelectCommand ????



Actuly我想更新sqlDataBase中的数据集。此数据集有3个dataTable映射到3个DataBase的表。



While single dataset contains these 3 DataTables. If YES then can each adapter may contain different SelectCommand or always same SelectCommand ????

Actuly I want to update a dataset in sqlDataBase. This dataset has 3 dataTables mapped to 3 DataBase's Tables.

推荐答案

您好b $ b您可以执行以下操作。将数据集添加到项目中,然后添加数据集Server Expolrer to it。你将为每个提供一个dataadapter。然后你可以在你的表单上使用它们。

你的Farhad。
Hi You can do these.Add a dataset to your project and then inser tor tables from Server Expolrer to it.You will have a dataadapter for each.then you can use them on your forms.
Yours Farhad.


这篇关于具有单个数据集的多个DataAdapter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆