Delen via


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 : Microsoft.EntityFrameworkCore.DbUpdateException
[System.Serializable]
public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
[<System.Serializable>]
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
Public Class DbUpdateConcurrencyException
Inherits DbUpdateException
Inheritance
DbUpdateConcurrencyException
Attributes

Remarks

See Handling concurrency conflicts for more information and examples.

Constructors

DbUpdateConcurrencyException()

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the DbUpdateException class from a serialized form.

DbUpdateConcurrencyException(String, Exception, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(String, Exception)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(String)

Initializes a new instance of the DbUpdateConcurrencyException class.

Properties

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)

Applies to