DbUpdateException Class

Definition

An exception that is thrown when an error is encountered while saving to the database.

C#
public class DbUpdateException : Exception
C#
[System.Serializable]
public class DbUpdateException : Exception
Inheritance
DbUpdateException
Derived
Attributes

Remarks

See Saving data with EF Core for more information and examples.

Constructors

DbUpdateException()

Initializes a new instance of the DbUpdateException class.

DbUpdateException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the DbUpdateException class from a serialized form.

DbUpdateException(String, Exception, IReadOnlyList<EntityEntry>)

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String, Exception, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String, Exception)

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String, IReadOnlyList<EntityEntry>)

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateException class.

DbUpdateException(String)

Initializes a new instance of the DbUpdateException class.

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.

Applies to

Proizvod Verzije
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