Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
DbUpdateConcurrencyException Class
Definition
- Namespace:
- Microsoft.EntityFrameworkCore
- Assembly:
- Microsoft.EntityFrameworkCore.dll
- Package:
- Microsoft.EntityFrameworkCore v1.0.6
- Package:
- Microsoft.EntityFrameworkCore v1.1.6
- Package:
- Microsoft.EntityFrameworkCore v10.0.0
- Package:
- Microsoft.EntityFrameworkCore v2.0.3
- Package:
- Microsoft.EntityFrameworkCore v2.1.11
- Package:
- Microsoft.EntityFrameworkCore v2.2.6
- Package:
- Microsoft.EntityFrameworkCore v3.0.0
- Package:
- Microsoft.EntityFrameworkCore v3.1.0
- Package:
- Microsoft.EntityFrameworkCore v5.0.0
- Package:
- Microsoft.EntityFrameworkCore v6.0.0
- Package:
- Microsoft.EntityFrameworkCore v7.0.0
- Package:
- Microsoft.EntityFrameworkCore v8.0.0
- Package:
- Microsoft.EntityFrameworkCore v9.0.0
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Runtime.CompilerServices.Nullable(0)]
[System.Serializable]
public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
[System.Serializable]
public class DbUpdateConcurrencyException : Microsoft.EntityFrameworkCore.DbUpdateException
type DbUpdateConcurrencyException = class
inherit DbUpdateException
[<System.Runtime.CompilerServices.Nullable(0)>]
[<System.Serializable>]
type DbUpdateConcurrencyException = class
inherit DbUpdateException
[<System.Serializable>]
type DbUpdateConcurrencyException = class
inherit DbUpdateException
Public Class DbUpdateConcurrencyException
Inherits DbUpdateException
- Inheritance
- Attributes
Remarks
See Handling concurrency conflicts for more information and examples.
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
Entity Framework
Feedback
Was this page helpful?
