Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi...

 

I want to ask you guys what's the best way to update a database using ADO.net.

I'm not using Datasets, nor DataAdapters.

 

I have my own IDBCommand objects, trying to keep it as DBProvider independant as possible.

 

My main question is: having the 3 records save commands (Insert, Update & Delete), and a bunch of rows to update (a DataRow collection),

what's the best code to apply the commands on the rows?

 

Thanks,

 

Alex :p

Software bugs are impossible to detect by anybody except the end user.
Posted
I don't understand. If you're using your own objects to handle it, it sounds like you just need to loop through the rows, check the RowState member and apply the correct command.
Here's what I'm up to.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...