Condividi tramite


DatabaseLogFormatter.Executed<TResult> Metodo

Definizione

Chiamato ogni volta che un comando ha completato l'esecuzione. L'implementazione predefinita di questo metodo filtra DbContext in Context, se presente, e quindi chiama LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). Questo metodo in genere viene sottoposto a override solo per modificare il comportamento di filtro del contesto.

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

Parametri di tipo

TResult

Tipo dei risultati dell'operazione.

Parametri

command
DbCommand

Comando eseguito.

interceptionContext
DbCommandInterceptionContext<TResult>

Informazioni contestuali associate al comando.

Si applica a