Db​Update​Exception Db​Update​Exception Class

Definition

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

public class DbUpdateException : Exception, ISerializable, _ExceptionPublic 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

Inherited Members

System.Exception

System.Exception.GetBaseException()System.Exception.GetBaseException()
System.Exception.ToString()System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()System.Exception.GetType()
System.Exception.MessageSystem.Exception.Message
System.Exception.DataSystem.Exception.Data
System.Exception.InnerExceptionSystem.Exception.InnerException
System.Exception.TargetSiteSystem.Exception.TargetSite
System.Exception.StackTraceSystem.Exception.StackTrace
System.Exception.HelpLinkSystem.Exception.HelpLink
System.Exception.SourceSystem.Exception.Source
System.Exception.HResultSystem.Exception.HResult
System.Exception.SerializeObjectStateSystem.Exception.SerializeObjectState

System.Object

System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

DbUpdateException(String, IReadOnlyList<IUpdateEntry>) 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.

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<IUpdateEntry>) 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.

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)