Q
Q. John Chen
All,
I am using VS2005.
I have a dataset MyDataSet with several DataTableAdapters defined (say
CompanyDataTable, DepartmentDataTable)
After I modified the data in the data tables of the dataset, I want
to put the change back to the database. So, I am doing the following:
MyDataSetTableAdapters.CompanyTableAdapter adapter = new ..
adapter.Update(myDataSet.CompanyDataTable);
MyDataSetTableAdapters.DepartmentTableAdapter adaperDept = new ..
adapterDept.Update(myDataSet.DepartmentDataTable)
The above worked but I have quite a few tables. Is there a method that
I can do and update all at once instead one table at a time?
TIA,
John
I am using VS2005.
I have a dataset MyDataSet with several DataTableAdapters defined (say
CompanyDataTable, DepartmentDataTable)
After I modified the data in the data tables of the dataset, I want
to put the change back to the database. So, I am doing the following:
MyDataSetTableAdapters.CompanyTableAdapter adapter = new ..
adapter.Update(myDataSet.CompanyDataTable);
MyDataSetTableAdapters.DepartmentTableAdapter adaperDept = new ..
adapterDept.Update(myDataSet.DepartmentDataTable)
The above worked but I have quite a few tables. Is there a method that
I can do and update all at once instead one table at a time?
TIA,
John