语言

IRelationalCommandDiagnosticsLogger.CommandScalarExecuted 方法

定义

重载

CommandScalarExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)

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

事件的 CommandExecuted 日志。

public object? CommandScalarExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, object? methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandScalarExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * obj * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> obj
Public Function CommandScalarExecuted (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As Object, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As Object

参数

connection
IRelationalConnection

连接。

command
DbCommand

数据库命令对象。

context
DbContext

DbContext当前使用的,如果未知,则为 null。

commandId
Guid

与给定 DbCommand关联的关联 ID。

connectionId
Guid

与 DbConnection 所使用的关联 ID 相关联。

methodResult
Object

基础方法执行的返回值。

startTime
DateTimeOffset

执行开始的时间。

duration
TimeSpan

命令执行的持续时间,不包括使用结果。

commandSource
CommandSource

命令的源。

返回

执行的结果,可能已被侦听器修改。

适用于

CommandScalarExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)

Source:
IRelationalCommandDiagnosticsLogger.cs
Source:
IRelationalCommandDiagnosticsLogger.cs

事件的 CommandExecuted 日志。

public object? CommandScalarExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, object? methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandScalarExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * obj * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> obj
Public Function CommandScalarExecuted (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As Object, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As Object

参数

connection
IRelationalConnection

连接。

command
DbCommand

数据库命令对象。

logCommandText
String

可以记录的命令文本。

context
DbContext

DbContext当前使用的,如果未知,则为 null。

commandId
Guid

与给定 DbCommand关联的关联 ID。

connectionId
Guid

与 DbConnection 所使用的关联 ID 相关联。

methodResult
Object

基础方法执行的返回值。

startTime
DateTimeOffset

执行开始的时间。

duration
TimeSpan

命令执行的持续时间,不包括使用结果。

commandSource
CommandSource

命令的源。

返回

执行的结果,可能已被侦听器修改。

适用于