DbUpdateConcurrencyException DbUpdateConcurrencyException 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
type DbUpdateConcurrencyException = class
    inherit DbUpdateException
Public Class DbUpdateConcurrencyException
Inherits DbUpdateException
Inheritance
DbUpdateConcurrencyExceptionDbUpdateConcurrencyExceptionDbUpdateConcurrencyException

Constructors

DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>) DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>) DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

Properties

Entries Entries 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