DbCommandInterceptor.CommandFailed(DbCommand, CommandErrorEventData) 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 when execution of a command has failed with an exception.
public virtual void CommandFailed (System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData eventData);
abstract member CommandFailed : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData -> unit
override this.CommandFailed : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData -> unit
Public Overridable Sub CommandFailed (command As DbCommand, eventData As CommandErrorEventData)
Parameters
- command
- DbCommand
The command.
- eventData
- CommandErrorEventData
Contextual information about the command and execution.
Implements
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework