Telerik OpenAccess ORM provides you with a mechanism to handle the Concurrency control. Concurrency control is the management of contention for data resources. It ensures that the transactions are executed following the ACID rules.
There are two concurrency control schemes: pessimistic and optimistic. A concurrency control scheme is considered pessimistic when it locks a given resource early in the data-access transaction and does not release it until the transaction is closed. A concurrency control scheme is considered optimistic when locks are acquired and released over a very short period of time at the end of a transaction.
The Telerik OpenAccess supports several modes for Concurrency control. In this blog post we will discuss how to use the ‘backend’ concurrency mode.
The backend mode uses column of datetime type to maintain the version of a row. This column is being automatically modified on every update of the row. This mechanism can be used with the MSSQL family and Oracle modes:
How to set up the backend concurrency control mode depends on the data model classes. In case of an existing schema you should use the Reverse Mapping Wizard, otherwise – Forward Mapping Wizard.
Reverse Mapping Wizard:
Forward Mapping Wizard:
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.