DatabaseLogFormatter.LogResult<TResult> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呼叫來記錄執行指令的結果。 覆寫此方法以改變結果的記錄方式。System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction
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))
類型參數
- TResult
行動的結果類型。
參數
- command
- DbCommand
指令正在被記錄。
- interceptionContext
- DbCommandInterceptionContext<TResult>
與指令相關的情境資訊。