DbUpdateConcurrencyException Class

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.


Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public class DbUpdateConcurrencyException : DbUpdateException

The DbUpdateConcurrencyException type exposes the following members.

Public methodDbUpdateConcurrencyException()Initializes a new instance of the DbUpdateException class.
Public methodDbUpdateConcurrencyException(String)Initializes a new instance of the DbUpdateException class.
Public methodDbUpdateConcurrencyException(String, Exception)Initializes a new instance of the DbUpdateException class.

Public propertyData (Inherited from Exception.)
Public propertyEntriesGets DbEntityEntry objects that represent the entities that could not be saved to the database. (Inherited from DbUpdateException.)
Public propertyHelpLink (Inherited from Exception.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)

Protected eventSerializeObjectState (Inherited from Exception.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.