Concurrency Violation in NHibernate( c#) example

Posted by vijaysylvester on Stack Overflow See other posts from Stack Overflow or by vijaysylvester
Published on 2010-03-04T11:38:02Z Indexed on 2010/03/21 5:01 UTC
Read the original article Hit count: 440

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.

  1. 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

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate