Table of Contents

Class DbUpdateConcurrencyException

Namespace
RentADeveloper.DbConnectionPlus.Exceptions
Assembly
RentADeveloper.DbConnectionPlus.dll

An exception that is thrown when a concurrency violation is encountered while deleting or updating an entity in a database. A concurrency violation occurs when an unexpected number of rows are affected by a delete or update operation. This is usually because the data in the database has been modified since the entity has been loaded.

public class DbUpdateConcurrencyException : Exception, ISerializable
Inheritance
DbUpdateConcurrencyException
Implements
Inherited Members

Constructors

DbUpdateConcurrencyException()

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException()

DbUpdateConcurrencyException(string)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException(string message)

Parameters

message string

The error message.

DbUpdateConcurrencyException(string, Exception)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

DbUpdateConcurrencyException(string, object)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException(string message, object entity)

Parameters

message string

The error message.

entity object

The entity that was involved in the concurrency violation.

Properties

Entity

The entity that was involved in the concurrency violation.

public object? Entity { get; set; }

Property Value

object