IRelationalCommandDiagnosticsLogger.CommandScalarExecuting Yöntem

Tanım

Olay için CommandExecuting günlükler.

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<object> CommandScalarExecuting (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);
abstract member CommandScalarExecuting : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<obj>
Public Function CommandScalarExecuting (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, commandSource As CommandSource) As InterceptionResult(Of Object)

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

context
DbContext

Şu DbContext anda kullanılmakta olan, bilinmiyorsa null olarak.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılmakta olan ile ilişkili bağıntı DbConnection kimliği.

startTime
DateTimeOffset

Yürütmenin başladığı saat.

commandSource
CommandSource

Komutun kaynağı.

Döndürülenler

Kesişen bir sonuç.

Şunlara uygulanır