Sdílet prostřednictvím


IDbCommandInterceptor.CommandFailed(DbCommand, CommandErrorEventData) Metoda

Definice

Volá se, když spuštění příkazu selhalo s výjimkou.

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)

Parametry

command
DbCommand

Příkaz.

eventData
CommandErrorEventData

Kontextové informace o příkazu a spuštění.

Platí pro