Sprache

DatabaseLogFormatter.LogResult<TResult> Methode

Definition

Wird aufgerufen, um das Ergebnis der Ausführung eines Befehls zu protokollieren. Überschreiben Sie diese Methode, um zu ändern, wie Ergebnisse protokolliert System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteActionwerden.

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

Typparameter

TResult

Der Typ der Ergebnisse des Vorgangs.

Parameter

command
DbCommand

Der Befehl, der protokolliert wird.

interceptionContext
DbCommandInterceptionContext<TResult>

Kontextbezogene Informationen, die dem Befehl zugeordnet sind.

Gilt für: