Share via


DbUpdateConcurrencyException Constructors

Definition

Overloads

DbUpdateConcurrencyException()

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(String)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(SerializationInfo, StreamingContext)
Obsolete.

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

DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(String, Exception)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException(String, Exception, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

DbUpdateConcurrencyException()

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException ();
Public Sub New ()

Applies to

DbUpdateConcurrencyException(String)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException (string message);
new Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException : string -> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

DbUpdateConcurrencyException(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 DbUpdateConcurrencyException (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 DbUpdateConcurrencyException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")>]
new Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException
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

DbUpdateConcurrencyException(String, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException (string message, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException : string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> -> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException
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 concurrency violation.

Applies to

DbUpdateConcurrencyException(String, Exception)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException (string message, Exception innerException);
public DbUpdateConcurrencyException (string message, Exception? innerException);
new Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException : string * Exception -> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException
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

DbUpdateConcurrencyException(String, Exception, IReadOnlyList<IUpdateEntry>)

Initializes a new instance of the DbUpdateConcurrencyException class.

public DbUpdateConcurrencyException (string message, Exception innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
public DbUpdateConcurrencyException (string message, Exception? innerException, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> entries);
new Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException : string * Exception * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IUpdateEntry> -> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException
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