语言

RelationalEventId.CommandError 字段

定义

执行数据库命令时出错。

public static readonly Microsoft.Extensions.Logging.EventId CommandError;
 staticval mutable CommandError : Microsoft.Extensions.Logging.EventId
Public Shared ReadOnly CommandError As EventId 

字段值

注解

此事件位于类别中 DbLoggerCategory.Database.Command 。

此事件在与 a DiagnosticSource. 一起使用时使用CommandErrorEventData有效负载。

适用于