DbUpdateConcurrencyException DbUpdateConcurrencyException Class

Definition

An exception that is thrown when a concurrency violation is encountered while saving to the database. A concurrency violation occurs when an unexpected number of rows are affected during save. This is usually because the data in the database has been modified since it was loaded into memory.

public class DbUpdateConcurrencyException : DbUpdateException, ISerializable, _Exception
Public Class DbUpdateConcurrencyException
    Inherits DbUpdateException
    Implements ISerializable, _Exception
Inheritance
System.ObjectSystem.Object
System.ExceptionSystem.Exception
DbUpdateConcurrencyExceptionDbUpdateConcurrencyException
Implements
System.Runtime.Serialization.ISerializableSystem.Runtime.Serialization.ISerializable System.Runtime.InteropServices._ExceptionSystem.Runtime.InteropServices._Exception

Constructors

DbUpdateConcurrencyException(String, IReadOnlyList) DbUpdateConcurrencyException(String, IReadOnlyList(Of IUpdateEntry))

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException(string message, IReadOnlyList<IUpdateEntry> entries)
Public Sub New(message As String, entries As IReadOnlyList(Of IUpdateEntry))
Parameters
message
System.String System.String

The error message that explains the reason for the exception.

entries
System.Collections.Generic.IReadOnlyList<IUpdateEntry> System.Collections.Generic.IReadOnlyList(Of IUpdateEntry)

The entries that were involved in the concurrency violation.

Properties

Entries Entries

Gets the entries that were involved in the error. Typically this is a single entry, but in some cases it may be zero or multiple entries.

(Inherited from DbUpdateException)

Methods

Data Data

Inherited from System.Exception

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetBaseException() GetBaseException()

Inherited from System.Exception

GetHashCode() GetHashCode()

Inherited from System.Object

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Inherited from System.Exception

GetType() GetType()

Inherited from System.Exception
Inherited from System.Exception

HResult HResult

Inherited from System.Exception

InnerException InnerException

Inherited from System.Exception

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Message Message

Inherited from System.Exception

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

SerializeObjectState SerializeObjectState

Inherited from System.Exception

Source Source

Inherited from System.Exception

StackTrace StackTrace

Inherited from System.Exception

TargetSite TargetSite

Inherited from System.Exception

ToString() ToString()

Inherited from System.Exception