DbUpdateException Constructors
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.
Overloads
DbUpdateException() |
Initializes a new instance of the DbUpdateException class. |
DbUpdateException(String) |
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, IReadOnlyList<EntityEntry>) |
Initializes a new instance of the DbUpdateException class. |
DbUpdateException(String, IReadOnlyList<IUpdateEntry>) |
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()
Initializes a new instance of the DbUpdateException class.
public DbUpdateException ();
Public Sub New ()
Applies to
DbUpdateException(String)
Initializes a new instance of the DbUpdateException class.
public DbUpdateException (string message);
new Microsoft.EntityFrameworkCore.DbUpdateException : string -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
DbUpdateException(SerializationInfo, StreamingContext)
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initializes a new instance of the DbUpdateException class from a serialized form.
public DbUpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
public DbUpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EntityFrameworkCore.DbUpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbUpdateException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")>]
new Microsoft.EntityFrameworkCore.DbUpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The serialization info.
- context
- StreamingContext
The streaming context being used.
- Attributes
Applies to
DbUpdateException(String, IReadOnlyList<EntityEntry>)
Initializes a new instance of the DbUpdateException class.
public DbUpdateException (string message, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, entries As IReadOnlyList(Of EntityEntry))
Parameters
- message
- String
The error message that explains the reason for the exception.
- entries
- IReadOnlyList<EntityEntry>
The entries that were involved in the error.
Applies to
DbUpdateException(String, IReadOnlyList<IUpdateEntry>)
Initializes a new instance of the DbUpdateException class.
public DbUpdateException (string message, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, entries As IReadOnlyList(Of IUpdateEntry))
Parameters
- message
- String
The error message that explains the reason for the exception.
- entries
- IReadOnlyList<IUpdateEntry>
The entries that were involved in the error.
Applies to
DbUpdateException(String, Exception)
Initializes a new instance of the DbUpdateException class.
public DbUpdateException (string message, Exception innerException);
public DbUpdateException (string message, Exception? innerException);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * Exception -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception.
Applies to
DbUpdateException(String, Exception, IReadOnlyList<EntityEntry>)
Initializes a new instance of the DbUpdateException class.
public DbUpdateException (string message, Exception? innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * Exception * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, innerException As Exception, entries As IReadOnlyList(Of EntityEntry))
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception.
- entries
- IReadOnlyList<EntityEntry>
The entries that were involved in the error.
Applies to
DbUpdateException(String, Exception, IReadOnlyList<IUpdateEntry>)
Initializes a new instance of the DbUpdateException class.
public DbUpdateException (string message, Exception innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
public DbUpdateException (string message, Exception? innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateException : string * Exception * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> -> Microsoft.EntityFrameworkCore.DbUpdateException
Public Sub New (message As String, innerException As Exception, entries As IReadOnlyList(Of IUpdateEntry))
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception.
- entries
- IReadOnlyList<IUpdateEntry>
The entries that were involved in the error.
Applies to
Entity Framework