ConflictMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies when concurrency conflicts should be reported.
public enum class ConflictMode
public enum ConflictMode
type ConflictMode =
Public Enum ConflictMode
- Inheritance
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
db.SubmitChanges(ConflictMode.FailOnFirstConflict)
db.SubmitChanges(ConflictMode.FailOnFirstConflict);
Northwnd db = new Northwnd("...");
// Create, update, delete code.
db.SubmitChanges(ConflictMode.FailOnFirstConflict);
// or
db.SubmitChanges(ConflictMode.ContinueOnConflict);
Dim db As New Northwnd("...")
' Create, update, delete code.
db.SubmitChanges(ConflictMode.FailOnFirstConflict)
' or
db.SubmitChanges(ConflictMode.ContinueOnConflict)
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.