.net - How do I detect changes made by a trigger on a single row using the OracleDataApdater -


im updateing single row of data using oracledataadapter , datatable. calling .update method of apdapter works fine database trigger updates 1 of field values after update. causes me problem datatable out of sync database.

possible solutions requery data after each update statement or use oracle dependency fires believe best method have datatable update of changed values, how do this? have tried using using oracle command builder update statement , alter each of parameters inputoutput, has not worked have tried hooking events of rowupdated unsure @ there.

any suggestions?

two ways can think of

1- either start maintaing history of table changes , can query history table update mades.

2- maintain timestamp column when going update record , can match timestamp of records check whether record updating stale or not if stale either throw concurrency exception or reload data.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -