Class DbUpdateConcurrencyException
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.
Implements
Inherited Members
Namespace: RentADeveloper.DbConnectionPlus.Exceptions
Assembly: RentADeveloper.DbConnectionPlus.dll
Syntax
public class DbUpdateConcurrencyException : Exception, ISerializable
Constructors
View SourceDbUpdateConcurrencyException()
Initializes a new instance of the DbUpdateConcurrencyException class.
Declaration
public DbUpdateConcurrencyException()
DbUpdateConcurrencyException(string)
Initializes a new instance of the DbUpdateConcurrencyException class.
Declaration
public DbUpdateConcurrencyException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message. |
DbUpdateConcurrencyException(string, Exception)
Initializes a new instance of the DbUpdateConcurrencyException class.
Declaration
public DbUpdateConcurrencyException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message. |
| Exception | innerException | The inner exception. |
DbUpdateConcurrencyException(string, object)
Initializes a new instance of the DbUpdateConcurrencyException class.
Declaration
public DbUpdateConcurrencyException(string message, object entity)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message. |
| object | entity | The entity that was involved in the concurrency violation. |
Properties
View SourceEntity
The entity that was involved in the concurrency violation.
Declaration
public object? Entity { get; set; }
Property Value
| Type | Description |
|---|---|
| object |