There is no one size fits all answer. If you use the commandbuilder, you are
really limited. If you roll your own logic you have full control over it.
Basically you can determine what conditions you'll want to throw an
concurrency exception if you roll your own logic. You can trap and respond
to concurrency excpetions however you want.
If you use the Configuration wizard, you can turn off Optimistic
concurrency, and for a learning experience, I'd encourage you to configure
an adapter with OC on and off and see the different code that's generated.
If you use a COmmandBuilder, if Any value changes you'll get a concurrency
exception. If you use your own, you can trap the exception and ask the user
what they want or implement whatever business rule is in place.
In some instances last in wins is best. In a hospital envrironment, someone
may well die if you do this... so there really isn't a 'best'
If you have some specifics I'll be glad to address them with you.
HTH,
Bill
www.devbuzz.com
www.knowdotnet.com
otto said:
Hi all:
We´re developing an application will have a lot of concurrent users. I
want to know what´s he best way to give a solution to this problem in .NET.
Any idea will be appreciated.