I have an application that I am trying to use auto generated code as much as
possible. It makes writing the application so much easier.
I have created a DataSet based on an SQL database connection. VS2008
generated the dataset class and code.
I need to insert some logic in the UpdateAll method just before the
workConnection.Commit() statement. I will be using the allAddedRows and
allChangedRows item arrays.
I know that if I make changes here they will be erased if the code is
re-generated.
Is there a method I can override or an event I can subscribe to that will
let me do something with the database just after the additions and changes
are made? I can start my own transaction if I need to, but I need access to
the arrays of added, changed and deleted records.
Again, I want to keep things as auto generated as possible.