RelationalLoggerExtensions.CommandScalarExecuting 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.
Protokolliert das CommandExecuting Ereignis.
public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<object> CommandScalarExecuting(this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime);
static member CommandScalarExecuting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<obj>
<Extension()>
Public Function CommandScalarExecuting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset) As InterceptionResult(Of Object)
Parameter
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Database.Command>
Der zu verwendende Diagnoseprotokollierer.
- connection
- IRelationalConnection
Die Verbindung.
- command
- DbCommand
Das Datenbankbefehlsobjekt.
- connectionId
- Guid
Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.
- startTime
- DateTimeOffset
Die Zeit, zu der die Ausführung begann.
Gibt zurück
Ein abgefangenes Ergebnis.