DbUpdateConcurrencyException Class
Entity Framework 5.0
Exception thrown by DbContext when the expected behavior is that SaveChanges for an entity would result in a database update but in fact no rows in the database were affected. This usually indicates that the database has been concurrently updated and a concurrency token that was expected to match did not actually match. State entries referenced by this exception are not serialized due to security and access to the state entries after serialization will return null.
System.Object
System.Exception
System.SystemException
System.Data.DataException
System.Data.Entity.Infrastructure.DbUpdateException
System.Data.Entity.Infrastructure.DbUpdateConcurrencyException
System.Exception
System.SystemException
System.Data.DataException
System.Data.Entity.Infrastructure.DbUpdateException
System.Data.Entity.Infrastructure.DbUpdateConcurrencyException
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
The DbUpdateConcurrencyException type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DbUpdateConcurrencyException | Initializes a new instance of the DbUpdateException class. |
![]() | DbUpdateConcurrencyException(String) | Initializes a new instance of the DbUpdateException class. |
![]() | DbUpdateConcurrencyException(String, Exception) | Initializes a new instance of the DbUpdateException class. |
| Name | Description | |
|---|---|---|
![]() | Data | (Inherited from Exception.) |
![]() | Entries | Gets DbEntityEntry objects that represent the entities that could not be saved to the database. (Inherited from DbUpdateException.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBaseException | (Inherited from Exception.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetObjectData | Security Critical. (Inherited from Exception.) |
![]() | GetType | (Inherited from Exception.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Exception.) |
Show:

