Sprache

DatabaseLogFormatter.Executed<TResult> Methode

Definition

Wird aufgerufen, wenn ein Befehl die Ausführung abgeschlossen hat. Die Standardimplementierung dieser Methode filtert nach DbContext Festlegung in Context, falls vorhanden, und ruft dann auf LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). Diese Methode würde in der Regel nur überschrieben, um das Verhalten der Kontextfilterung zu ändern.

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))

Typparameter

TResult

Der Typ der Ergebnisse des Vorgangs.

Parameter

command
DbCommand

Der Befehl, der ausgeführt wurde.

interceptionContext
DbCommandInterceptionContext<TResult>

Kontextbezogene Informationen, die dem Befehl zugeordnet sind.

Gilt für: