The concurrency token would be the benchmark value used by EF to identify whether the transaction has a conflict or not. We will be exploring different types of concurrency tokens available and, if modified, how they stop the other user from updating the same.
The concept should be pretty simple, and we will keep ourselves in the shoes of the Microsoft developers and see what algorithm should be adopted for the implementation.
The following algorithm is required at the higher level:
- The entity should identify at least one column (concurrency check column) to let's validate whether the row is updated or not
- The identified column will be used in any update operation performed by the framework to check whether the update is valid or not:
- The column is concluded as valid if the previous value in the updating model and the original value fed to...