Concurrency Advice


Author
Message
Geoff Hirst
Geoff Hirst
StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
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

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
Geoff Hirst
Geoff Hirst
StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)StrataFrame User (221 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
Trent,

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

best

Geoff.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search