DbUpdateException DbUpdateException DbUpdateException Class

Definition

Exception thrown by DbContext when the saving of changes to the database fails. Note that state entries referenced by this exception are not serialized due to security and accesses to the state entries after serialization will return null.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[System.Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbUpdateException : System.Data.DataException
type DbUpdateException = class
    inherit DataException
Public Class DbUpdateException
Inherits DataException
Inheritance
DbUpdateExceptionDbUpdateExceptionDbUpdateException
Derived
Attributes

Constructors

DbUpdateException() DbUpdateException() DbUpdateException()

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String) DbUpdateException(String) DbUpdateException(String)

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String, Exception) DbUpdateException(String, Exception) DbUpdateException(String, Exception)

Initializes a new instance of the DbUpdateException class.

Properties

Entries Entries Entries

Gets DbEntityEntry objects that represents the entities that could not be saved to the database.

Applies to