In an application with several database table, it is not very efficient to write all database tables. Much more efficient is to skip writing to those tables where data has not changed.
To do so, you can use a combination of the function
code:
, the construct ReferencedIdentifiers
code:
, and runtime libraries.DatachangeMonitor
HERE