Commits all the changes made to persistent objects to a data store.
A Unit of Work tracks every change to every persistent object during a transaction that can affect a data store. Its CommitChanges method commits all the changes made to persistent objects to a data store. The only requirement for this is that the property setters call the XPBaseObject.OnChanged method.
If a save operation fails (for example, due to a database constraint violation), the following exceptions can be raised by XPO: