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:
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CommitChanges() method.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.