Hi
I'm using the Dataadapter and Dataset to do an insert/update/delete into
tables. The dataset has multiple tables in it. I want to write my own
Update/Insert commands for the Dataadapter for each of the tables and
not use the ones created by SqlCommandBuilder. The Update/Delete
commands created by Command builder do not create where clause based on
the primary key but the where cluase created will be based on all the
columns. This creates problems of "Concurrency Violation" if the record
gets modified by any other transaction.
Is there a way to write a generic GetUpdateCommand by passing the
datatable and the Primarykeycolumns as objects(Type Object) and then use
reflection to Get the actual types and then based on the columns in the
table passed create the update command?
Regards
Rjn
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!