Collections and Tracking Inserts/Deletes/Updates

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Let's say for the moment that datasets are not an option.

If I have a collection of objects, is there a simple way to keep track of
what has been updated, deleted, or inserted?

Thanks.

Matt
 
sure,

you need to describe more what is in your collection,

assuming that your collection has objects that correspond to a
one-to-one relationship to your database, just setup properties in your
class that hold Update,Delete,Insert as boolean values, then if you
update, delete or insert them just set your boolean to true!
 
Back
Top