HighTechTalks DotNet Forums  

Concurrency violation handling in data adapter

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss Concurrency violation handling in data adapter in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
John
 
Posts: n/a

Default Concurrency violation handling in data adapter - 02-27-2010 , 09:09 PM






Hi

When one updates an adapter like DataAdapter.Update(DataTable) and one gets
the concurrency violation error, what is the recommended method to resolve
the violation gracefully? A code segment would be very much appreciated.

Many Thanks

Regards

Reply With Quote
  #2  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: Concurrency violation handling in data adapter - 02-28-2010 , 01:59 AM






There is no default method, this depends completely from the data that gives
the currency violation.

If it is by instance a value, then it is most common to give a message that
it is not done and to start new.

This is the not nice part of programming, I don't think that you get simple
snippets for instance because that it can give big money risks.

(Ignoring concurrency is a standard example how fraud can be done and has to
be protected)





"John" <info (AT) nospam (DOT) infovis.co.uk> wrote

Quote:
Hi

When one updates an adapter like DataAdapter.Update(DataTable) and one
gets the concurrency violation error, what is the recommended method to
resolve the violation gracefully? A code segment would be very much
appreciated.

Many Thanks

Regards

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.