Question EnterpriceLibarary UpdateDataSet

knockyo

Well-known member
Joined
Sep 20, 2006
Messages
78
Programming Experience
1-3
Hi All,

Currently Im using Microsoft EnterpriceLibrary "UpdateDataSet" to insert all the data in one times,

Code:
Microsoft.Practices.EnterpriseLibrary.Data.Database.UpdateDataSet(DataSet dataSet, String tableName, DbCommand insertCommand, DbCommand updateCommand, DbCommand deleteCommand, UpdateBehavior updateBehavior)
But the problem is the my dataset contains 2 Datatable, how can i consume the library "UpdateDataSet" with my case?

_defaultDB.UpdateDataSet(dsData, "Main", cmd, NULL, NULL, UpdateBehavior.Standard

Thanks your help.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,148
Location
Sydney, Australia
Programming Experience
10+
The UpdateDataSet method saves the changes from a single DataTable. If you want to save the changes from multiple DataTables then you have to call the method multiple times.

By the way, what exactly is `NULL`? Do you actually mean `Nothing`?
 
Top Bottom