Condividi tramite


IDbCommandInterceptor.CommandFailed(DbCommand, CommandErrorEventData) Metodo

Definizione

Chiamato quando l'esecuzione di un comando non è riuscita con un'eccezione.

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

Parametri

command
DbCommand

Comando.

eventData
CommandErrorEventData

Informazioni contestuali sul comando e sull'esecuzione.

Si applica a