Share via


DbCommandDispatcher.NonQuery(DbCommand, DbCommandInterceptionContext) Method

Definition

public virtual int NonQuery (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext);
abstract member NonQuery : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> int
override this.NonQuery : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> int
Public Overridable Function NonQuery (command As DbCommand, interceptionContext As DbCommandInterceptionContext) As Integer

Parameters

command
DbCommand

The command on which the operation will be executed.

interceptionContext
DbCommandInterceptionContext

Optional information about the context of the call being made.

Returns

The result of the operation, which may have been modified by interceptors.

Remarks

Note that the result of executing the command is returned by this method. The result is not available in the interception context passed into this method since the interception context is cloned before being passed to interceptors.

Applies to