ConflictMode ConflictMode ConflictMode ConflictMode Enum

Definição

Especifica quando os conflitos de simultaneidade devem ser relatados.Specifies when concurrency conflicts should be reported.

public enum class ConflictMode
public enum ConflictMode
type ConflictMode = 
Public Enum ConflictMode
Herança

Campos

ContinueOnConflict ContinueOnConflict ContinueOnConflict ContinueOnConflict 1

Especifica que todas as atualizações para o banco de dados devem ser tentadas e que conflitos de simultaneidade devem ser acumulados e retornados no final do processo.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 FailOnFirstConflict FailOnFirstConflict FailOnFirstConflict 0

Especifica que as tentativas de atualizar o banco de dados devem parar imediatamente quando o primeiro erro de conflito de simultaneidade é detectado.Specifies that attempts to update the database should stop immediately when the first concurrency conflict error is detected.

Exemplos

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)

Aplica-se a