Skip to main content

LockingException Class

An exception thrown because an attempt is made to modify a row in a database, but its version doesn’t match the version of the row being posted.

Namespace: DevExpress.Xpo.DB.Exceptions

Assembly: DevExpress.Data.v22.1.dll


public class LockingException :


This exception supports data concurrency in the Optimistic Locking mechanism. It is raised if the row’s data being written back to a database is not consistent with the current data in the database. For instance, a row has been modified by another user/thread after the row’s values were read by the current thread. To learn more about optimistic concurrency, refer to Optimistic Concurrency.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LockingException class.


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.


See Also