I have a program in which I am performing non-atomic updates to the database with a single DataContext (that is, the changes are submitted when the user clicks Save, not after each transaction).
When the user saves, I would like to be able to query the database (as it would be when I call submitChanges()
) and do some checks just before I call submitChanges()
. Is there a way to get this 'preview'?
(Calling getChangeSet()
in this instance makes things very complex.)
Any ideas?