DatabaseLogFormatter.Executed<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 whenever a command has completed executing. The default implementation of this method filters by DbContext set into Context, if any, and then calls LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). This method would typically only be overridden to change the context filtering behavior.
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))
Type Parameters
- TResult
The type of the operation's results.
Parameters
- command
- DbCommand
The command that was executed.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Contextual information associated with the command.
Applies to
Entity Framework