DatabaseLogFormatter.LogResult<TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called to log the result of executing a command. Override this method to change how results are logged to 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))
Type Parameters
- TResult
The type of the operation's results.
Parameters
- command
- DbCommand
The command being logged.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Contextual information associated with the command.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework