Freigeben über


DbUpdateException Konstruktoren

Definition

Überlädt

DbUpdateException()

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException(String)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue instance der DbUpdateException -Klasse aus einem serialisierten Formular.

DbUpdateException(String, IReadOnlyList<EntityEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException(String, IReadOnlyList<IUpdateEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException(String, Exception)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException(String, Exception, IReadOnlyList<EntityEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException(String, Exception, IReadOnlyList<IUpdateEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

DbUpdateException()

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

public DbUpdateException ();
Public Sub New ()

Gilt für:

DbUpdateException(String)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

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

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

Gilt für:

DbUpdateException(SerializationInfo, StreamingContext)

Achtung

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initialisiert eine neue instance der DbUpdateException -Klasse aus einem serialisierten Formular.

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)

Parameter

info
SerializationInfo

Die Serialisierungsinformationen.

context
StreamingContext

Der verwendete Streamingkontext.

Attribute

Gilt für:

DbUpdateException(String, IReadOnlyList<EntityEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

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

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

entries
IReadOnlyList<EntityEntry>

Die Einträge, die am Fehler beteiligt waren.

Gilt für:

DbUpdateException(String, IReadOnlyList<IUpdateEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

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

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

entries
IReadOnlyList<IUpdateEntry>

Die Einträge, die am Fehler beteiligt waren.

Gilt für:

DbUpdateException(String, Exception)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

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)

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist.

Gilt für:

DbUpdateException(String, Exception, IReadOnlyList<EntityEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

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

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist.

entries
IReadOnlyList<EntityEntry>

Die Einträge, die am Fehler beteiligt waren.

Gilt für:

DbUpdateException(String, Exception, IReadOnlyList<IUpdateEntry>)

Initialisiert eine neue Instanz der DbUpdateException-Klasse.

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

Parameter

message
String

Die Fehlermeldung, in der die Ursache der Ausnahme erklärt wird.

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist.

entries
IReadOnlyList<IUpdateEntry>

Die Einträge, die am Fehler beteiligt waren.

Gilt für: