How do you update a disconnected dataset

A

Andrew

I'm new to ADO.NET, and trying to understand...

Say you have a disconnected DataSet generated by "SELECT * FROM
MyTable WHERE ID = 1". The DataSet is edited and passed back into a
data component for update. For instance:

Persistence.Store(myDataSet);

Assuming Persistence.Store knows the data connection, how do you
update the database? Where does the SQL UPDATE statement come from?
The previous version of ADO saved the UPDATE statement, but ADO.NET
doesn't.
 
G

Greg

You have 3 choices on building you commands:
1) manually
2) CommandBuilder
3) Data Form Wizard

I usually start with #3 and move to #1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top