AlexCode Posted September 13, 2005 Posted September 13, 2005 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 Quote Software bugs are impossible to detect by anybody except the end user.
Machaira Posted September 13, 2005 Posted September 13, 2005 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. Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.