DbCommandInterceptor.NonQueryExecuted 方法

定义

此方法在调用 ExecuteNonQuery() 或其异步对应项之一后调用。 可以通过设置 Result来更改实体框架使用的结果。

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

参数

command
DbCommand

正在执行的命令。

interceptionContext
DbCommandInterceptionContext<Int32>

与调用关联的上下文信息。

实现

适用于