StrataFrame Forum

Concurrency Advice

http://forum.strataframe.net/Topic22280.aspx

By Geoff Hirst - 3/10/2009

Guys,

Just as the description says really. I have a system and I keep getting a data collision box appear, for the system. At the moment it is single user, but when complete it will be multi-user.

I have a number of rounding operations that are causing the data collision and I want to know if I can switch off the concurrency when updates are done programmatically, just to stop the data collisions from appearing?

thanks in advance

Geoff

By Trent L. Taylor - 3/10/2009

You can do this a number of ways.  Handle the ConcurrencyException event of the BO and just force to accept your changes.  You can also set the BO to ignore concurrency altogehter by setting the UpdateConcurrencyType to None.  Most likely, however, you are using OptimisticAllRows which can cause things like this.  If you would use a RowVersion, then this would most likely not happen.
By Geoff Hirst - 3/10/2009

Trent,

Thanks for this. I have implemented the RowVersion as you advised and it seems fine.

best

Geoff.