Edit

Share via


ConflictMode Enum

Definition

Specifies when concurrency conflicts should be reported.

C#
public enum ConflictMode
Inheritance
ConflictMode

Fields

Name Value Description
FailOnFirstConflict 0

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

ContinueOnConflict 1

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.

Examples

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

// Create, update, delete code.

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

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1