Concurrency Violation in NHibernate( c#) example
- by vijaysylvester
For quite some time , I was reading about the optimistic concurrency in NHibernate. If what i understood was correct then the below sample should hold good.
Consider two transactions T1 and T2.
When T1 and T2 are done simultaneously , the state(DB entries) gets updated with the values of the most latest update.(T1 or T2).
Though it seems to be conceptually sound , how do i simulate this for the purpose of understanding and integration testing.?
Can someone help me with a sample c# code.?
Thanks ,
vijay