Share via


DbCommandInterceptor.ScalarExecuted Method

Definition

This method is called after a call to ExecuteScalar() or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result.

public virtual void ScalarExecuted (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<object> interceptionContext);
abstract member ScalarExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
override this.ScalarExecuted : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
Public Overridable Sub ScalarExecuted (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Object))

Parameters

command
DbCommand

The command being executed.

interceptionContext
DbCommandInterceptionContext<Object>

Contextual information associated with the call.

Implements

Applies to