ConflictMode Enumeration

ConflictMode Enumeration

 

Specifies when concurrency conflicts should be reported.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public enum ConflictMode

Member nameDescription
ContinueOnConflict

Specifies that all updates to the database should be tried, and that concurrency conflicts should be accumulated and returned at the end of the process.

FailOnFirstConflict

Specifies that attempts to update the database should stop immediately when the first concurrency conflict error is detected.

db.SubmitChanges(ConflictMode.FailOnFirstConflict);
Northwnd db = new Northwnd("...");

// Create, update, delete code.

db.SubmitChanges(ConflictMode.FailOnFirstConflict);
// or
db.SubmitChanges(ConflictMode.ContinueOnConflict);

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show:
© 2016 Microsoft