This project is read-only.


work in progress

Saving changes back to the data source

The behaviour of writing changed property values back to the data source can be divide into two aspects:
  • When to save?
    • Item.SaveMode = UpdateImmediately - each change to the value of a databound property gets saved to the data source immediately
    • Item.SaveMode = ExplicitSave - changes to the values of databound properties are written to the data source just on a call to the method Item.SaveChanges()
  • Treat each item individually or all items as one?
    • If the items should be treated individually, then Item.SaveChanges() can be called at will on each item independently.
    • If the items should be treated as a consistent group, then NetView.SaveChanges() has to be called. It should save all changes on the items in a transaction.

Last edited Mar 5, 2013 at 10:22 AM by Baula, version 1


No comments yet.