How can you handle concurrency at field level in LINQ to SQL?

In LINQ to SQL, you can also handle concurrency at field level and this is the best way provided by the LINQ. To achieve this you need to define UpdateCheck attribute at field level and it has the following options:

  1. Never: – This option will never check for concurrency conflicts.
  2. Always: – This option will always check for concurrency conflicts.
  3. WhenChanged: – This option will check for concurrency conflicts when the field’s value has been changed.

Tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.