DatabaseLogFormatter.LogCommand<TResult> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
被呼叫來記錄即將執行的指令。 覆寫此方法以改變指令的記錄方式 System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction。
public virtual void LogCommand<TResult>(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext);
abstract member LogCommand : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
override this.LogCommand : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
Public Overridable Sub LogCommand(Of TResult) (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of TResult))
類型參數
- TResult
行動的結果類型。
參數
- command
- DbCommand
要記錄的指令。
- interceptionContext
- DbCommandInterceptionContext<TResult>
與指令相關的情境資訊。