c# - Does a concurrect exception happen to both user -
if user edits data record , same time user edits same record , both save.
1.) concurrency exception happen 1 user?
actually logical first wins first in technical aspect... possible both user kind of exception?
2.)the 1 late , getting concurrent exception guess can access
new updated data record other user yes?
1) think yes. 1 earlier other; there no other way around it. 1 update work normal, other throw concurrency exception.
this might depend on data access method using, there might systems can handle such situations more elegantly. doubt there systems give both users same exception without building behaviour on purpose.
as adam houldsworth says: depend on way code yourself. check multiple users beginning edit same record, , throw exception both. not believe asking. if so; misunderstood.
2) of course possible, build in application. catch concurrency exception , refresh whatever edit form user b trying update. he/she can try again. speaking obviously; not know specifics of situation.
Comments
Post a Comment