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. For more information, see Unit of Work.
If a save operation fails (e.g. due to a database constraint violation), the following exceptions can be raised by XPO: