다음을 통해 공유


DbCommandInterceptor.CommandFailed(DbCommand, CommandErrorEventData) 메서드

정의

예외를 제외하고 명령 실행이 실패할 때 호출됩니다.

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)

매개 변수

command
DbCommand

명령입니다.

eventData
CommandErrorEventData

명령 및 실행에 대한 컨텍스트 정보입니다.

구현

적용 대상