Langue

IDbCommandInterceptor.CommandFailed(DbCommand, CommandErrorEventData) Méthode

Définition

Appelé lorsque l’exécution d’une commande a échoué avec une exception.

public virtual void CommandFailed(System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData eventData);
public 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
abstract member CommandFailed : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData -> unit
Public Overridable Sub CommandFailed (command As DbCommand, eventData As CommandErrorEventData)
Public Sub CommandFailed (command As DbCommand, eventData As CommandErrorEventData)

Paramètres

command
DbCommand

Commande.

eventData
CommandErrorEventData

Informations contextuelles sur la commande et l’exécution.

S’applique à