語言

IRelationalCommandDiagnosticsLogger.CommandScalarExecutingAsync 方法

定義

多載

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

來源:
IRelationalCommandDiagnosticsLogger.cs
來源:
IRelationalCommandDiagnosticsLogger.cs
來源:
IRelationalCommandDiagnosticsLogger.cs
來源:
IRelationalCommandDiagnosticsLogger.cs

活動記錄 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))

參數

connection
IRelationalConnection

那種連結。

command
DbCommand

資料庫指令物件。

context
DbContext

目前使用的是 DbContext 若未知,則用來消除。

commandId
Guid

與給定 DbCommand相關的相關係數 ID 。

connectionId
Guid

與所使用的相關性ID DbConnection 相關。

startTime
DateTimeOffset

那場處決開始的時間。

commandSource
CommandSource

命令來源。

cancellationToken
CancellationToken

A CancellationToken 在等待任務完成時觀察。

傳回

一個被截獲的結果。

例外狀況

適用於

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

來源:
IRelationalCommandDiagnosticsLogger.cs
來源:
IRelationalCommandDiagnosticsLogger.cs

活動記錄 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))

參數

connection
IRelationalConnection

那種連結。

command
DbCommand

資料庫指令物件。

logCommandText
String

可以記錄的指令文字。

context
DbContext

目前使用的是 DbContext 若未知,則用來消除。

commandId
Guid

與給定 DbCommand相關的相關係數 ID 。

connectionId
Guid

與所使用的相關性ID DbConnection 相關。

startTime
DateTimeOffset

那場處決開始的時間。

commandSource
CommandSource

命令來源。

cancellationToken
CancellationToken

A CancellationToken 在等待任務完成時觀察。

傳回

一個被截獲的結果。

例外狀況

適用於