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.

C#
public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
C#
[System.Serializable]
public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
Inheritance
DbUpdateConcurrencyException
Attributes

Remarks

See Handling concurrency conflicts for more information and examples.

Constructors

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

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0