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
messagestringThe error message.
DbUpdateConcurrencyException(string, Exception)
Initializes a new instance of the DbUpdateConcurrencyException class.
public DbUpdateConcurrencyException(string message, Exception innerException)
Parameters
DbUpdateConcurrencyException(string, object)
Initializes a new instance of the DbUpdateConcurrencyException class.
public DbUpdateConcurrencyException(string message, object entity)
Parameters
messagestringThe error message.
entityobjectThe entity that was involved in the concurrency violation.
Properties
Entity
The entity that was involved in the concurrency violation.
public object? Entity { get; set; }