This sample shows concurrency detection in action and how to handle common use cases.
Concurrency handling is a confusing issue, and you'd like to learn more.
This sample illustrates the diagnosis of concurrency conflicts, and suggests some responses. The solution generates four kinds of concurrency conflicts:
It shows how to diagnose each type of conflict by examining the save exception thrown and the state of the local entity. At the point of final diagnosis, the code suggests some ways you might then proceed, performing automatic actions or soliciting input from the end user after presenting her with information about the conflict.