DbUpdateException DbUpdateException Class

Definition

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

public class DbUpdateException : Exception, ISerializable, _Exception
Public Class DbUpdateException
    Inherits Exception
    Implements ISerializable, _Exception
Inheritance
System.ObjectSystem.Object
System.ExceptionSystem.Exception
DbUpdateExceptionDbUpdateException
Implements
System.Runtime.Serialization.ISerializableSystem.Runtime.Serialization.ISerializable System.Runtime.InteropServices._ExceptionSystem.Runtime.InteropServices._Exception

Constructors

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

Initializes a new instance of the DbUpdateException class.

public DbUpdateException(string message, Exception innerException)
Public Sub New(message As String, innerException As Exception)
Parameters
message
System.String System.String

The error message that explains the reason for the exception.

innerException
System.Exception System.Exception

The exception that is the cause of the current exception.

DbUpdateException(String, Exception, IReadOnlyList) DbUpdateException(String, Exception, IReadOnlyList(Of IUpdateEntry))

Initializes a new instance of the DbUpdateException class.

public DbUpdateException(string message, Exception innerException, IReadOnlyList<IUpdateEntry> entries)
Public Sub New(message As String, innerException As Exception, entries As IReadOnlyList(Of IUpdateEntry))
Parameters
message
System.String System.String

The error message that explains the reason for the exception.

innerException
System.Exception System.Exception

The exception that is the cause of the current exception.

entries
System.Collections.Generic.IReadOnlyList<IUpdateEntry> System.Collections.Generic.IReadOnlyList(Of IUpdateEntry)

The entries that were involved in the error.

DbUpdateException(String, IReadOnlyList) DbUpdateException(String, IReadOnlyList(Of IUpdateEntry))

Initializes a new instance of the DbUpdateException class.

public DbUpdateException(string message, IReadOnlyList<IUpdateEntry> entries)
Public Sub New(message As String, entries As IReadOnlyList(Of IUpdateEntry))
Parameters
message
System.String System.String

The error message that explains the reason for the exception.

entries
System.Collections.Generic.IReadOnlyList<IUpdateEntry> System.Collections.Generic.IReadOnlyList(Of IUpdateEntry)

The entries that were involved in the error.

Properties

Entries 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.

public virtual IReadOnlyList<EntityEntry> Entries { get; }
Public Overridable ReadOnly Property Entries As IReadOnlyList(Of EntityEntry)
Value
System.Collections.Generic.IReadOnlyList<EntityEntry> System.Collections.Generic.IReadOnlyList(Of EntityEntry)

Methods

Data Data

Inherited from System.Exception

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetBaseException() GetBaseException()

Inherited from System.Exception

GetHashCode() GetHashCode()

Inherited from System.Object

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Inherited from System.Exception

GetType() GetType()

Inherited from System.Exception

HelpLink HelpLink

Inherited from System.Exception

HResult HResult

Inherited from System.Exception

InnerException InnerException

Inherited from System.Exception

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Message Message

Inherited from System.Exception

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

SerializeObjectState SerializeObjectState

Inherited from System.Exception

Source Source

Inherited from System.Exception

StackTrace StackTrace

Inherited from System.Exception

TargetSite TargetSite

Inherited from System.Exception

ToString() ToString()

Inherited from System.Exception