DbConnectionPlus API Documentation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Exception
    DbUpdateConcurrencyException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetType()
    Exception.TargetSite
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.StackTrace
    Exception.SerializeObjectState
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RentADeveloper.DbConnectionPlus.Exceptions
    Assembly: RentADeveloper.DbConnectionPlus.dll
    Syntax
    public class DbUpdateConcurrencyException : Exception, ISerializable

    Constructors

    View Source

    DbUpdateConcurrencyException()

    Initializes a new instance of the DbUpdateConcurrencyException class.

    Declaration
    public DbUpdateConcurrencyException()
    View Source

    DbUpdateConcurrencyException(string)

    Initializes a new instance of the DbUpdateConcurrencyException class.

    Declaration
    public DbUpdateConcurrencyException(string message)
    Parameters
    Type Name Description
    string message

    The error message.

    View Source

    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.

    View Source

    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 Source

    Entity

    The entity that was involved in the concurrency violation.

    Declaration
    public object? Entity { get; set; }
    Property Value
    Type Description
    object

    Implements

    ISerializable
    • View Source
    In this article
    Back to top Generated by DocFX