Sdílet prostřednictvím


DbCommandInterceptor.ScalarExecuted Metoda

Definice

Tato metoda je volána po volání ExecuteScalar() nebo jeden z jejích asynchronních protějšků je proveden. Výsledek používaný službou Entity Framework lze změnit nastavením 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))

Parametry

command
DbCommand

Spouští se příkaz.

interceptionContext
DbCommandInterceptionContext<Object>

Kontextové informace spojené s voláním.

Implementuje

Platí pro