Langue

IRelationalCommandDiagnosticsLogger.CommandScalarExecutingAsync Méthode

Définition

Surcharges

CommandScalarExecutingAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Source:
IRelationalCommandDiagnosticsLogger.cs
Source:
IRelationalCommandDiagnosticsLogger.cs
Source:
IRelationalCommandDiagnosticsLogger.cs
Source:
IRelationalCommandDiagnosticsLogger.cs

Journaux de l’événement CommandExecuting .

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<object>> CommandScalarExecutingAsync(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandScalarExecutingAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<obj>>
Public Function CommandScalarExecutingAsync (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult(Of Object))

Paramètres

connection
IRelationalConnection

Connexion.

command
DbCommand

Objet de commande de base de données.

context
DbContext

Actuellement DbContext utilisé, à null s’il n’est pas connu.

commandId
Guid

ID de corrélation associé à l’élément donné DbCommand.

connectionId
Guid

ID de corrélation associé à l’utilisation DbConnection .

startTime
DateTimeOffset

Heure à laquelle l’exécution a commencé.

commandSource
CommandSource

Source de la commande.

cancellationToken
CancellationToken

À CancellationToken observer lors de l’attente de la fin de la tâche.

Retours

Résultat intercepté.

Exceptions

Si la CancellationToken valeur est annulée.

S’applique à

CommandScalarExecutingAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Source:
IRelationalCommandDiagnosticsLogger.cs
Source:
IRelationalCommandDiagnosticsLogger.cs

Journaux de l’événement CommandExecuting .

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<object>> CommandScalarExecutingAsync(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandScalarExecutingAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<obj>>
Public Function CommandScalarExecutingAsync (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult(Of Object))

Paramètres

connection
IRelationalConnection

Connexion.

command
DbCommand

Objet de commande de base de données.

logCommandText
String

Texte de commande qui peut être journalisé.

context
DbContext

Actuellement DbContext utilisé, à null s’il n’est pas connu.

commandId
Guid

ID de corrélation associé à l’élément donné DbCommand.

connectionId
Guid

ID de corrélation associé à l’utilisation DbConnection .

startTime
DateTimeOffset

Heure à laquelle l’exécution a commencé.

commandSource
CommandSource

Source de la commande.

cancellationToken
CancellationToken

À CancellationToken observer lors de l’attente de la fin de la tâche.

Retours

Résultat intercepté.

Exceptions

Si la CancellationToken valeur est annulée.

S’applique à