DbUpdateException Class
Definition
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 an error is encountered while saving to the database.
public class DbUpdateException : Exception
[System.Serializable]
public class DbUpdateException : Exception
type DbUpdateException = class
inherit Exception
[<System.Serializable>]
type DbUpdateException = class
inherit Exception
Public Class DbUpdateException
Inherits 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) |
Initializes a new instance of the DbUpdateException class. |
DbUpdateException(String, Exception) |
Initializes a new instance of the DbUpdateException class. |
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, IReadOnlyList<EntityEntry>) |
Initializes a new instance of the DbUpdateException class. |
DbUpdateException(String, IReadOnlyList<IUpdateEntry>) |
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
Entity Framework