If two users modify data at the same time ( e.g. user 1 Reads data into a BO, Changes It, Users 2 reads same Data into a BO, User 1 then saves the BO, and then User 2 Attempts to Save the same data), a message comes up:
Data Collision... Another user made changes to the same record..choose the changes to accept (MyValue or Server Value)
Now, this is fine most of the time (say for Master File Changes)
However, If say an Invocie is being modified in this way, I NEVER want the second user to have their changes accepted. In this case, I would prefer if an error was raised and a notification to this effect ended up in the BrokenRules Collection
In my BusinessObject, I would like to do something like:
if (DataCollision = true) {this.AddBrokenRule("XXX", "Another User has just amended the transaction ");}and I do not want the user to have the option to choose what is to be done.