IRelationalCommandDiagnosticsLogger.CommandError Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| CommandError(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource) |
Protokolliert das CommandError Ereignis. |
| CommandError(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource) |
Protokolliert das CommandError Ereignis. |
CommandError(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource)
Protokolliert das CommandError Ereignis.
public void CommandError(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandError : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> unit
Public Sub CommandError (connection As IRelationalConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)
Parameter
- connection
- IRelationalConnection
Die Verbindung.
- command
- DbCommand
Das Datenbankbefehlsobjekt.
- executeMethod
- DbCommandMethod
Stellt die Methode dar, die aufgerufen wird, um den Befehl auszuführen.
- connectionId
- Guid
Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.
- exception
- Exception
Die Ausnahme, die diesen Fehler verursacht hat.
- startTime
- DateTimeOffset
Die Zeit, zu der die Ausführung begann.
- duration
- TimeSpan
Die Zeitspanne, die bis zum Auslösen der Ausnahme überschritten wurde.
- commandSource
- CommandSource
Quelle des Befehls.
Gilt für:
CommandError(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource)
Protokolliert das CommandError Ereignis.
public void CommandError(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandError : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> unit
Public Sub CommandError (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)
Parameter
- connection
- IRelationalConnection
Die Verbindung.
- command
- DbCommand
Das Datenbankbefehlsobjekt.
- logCommandText
- String
Der Befehlstext, der protokolliert werden kann.
- executeMethod
- DbCommandMethod
Stellt die Methode dar, die aufgerufen wird, um den Befehl auszuführen.
- connectionId
- Guid
Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.
- exception
- Exception
Die Ausnahme, die diesen Fehler verursacht hat.
- startTime
- DateTimeOffset
Die Zeit, zu der die Ausführung begann.
- duration
- TimeSpan
Die Zeitspanne, die bis zum Auslösen der Ausnahme überschritten wurde.
- commandSource
- CommandSource
Quelle des Befehls.