다음을 통해 공유


CommandErrorEventData 생성자

정의

오버로드

CommandErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Exception, Boolean, Boolean, DateTimeOffset, TimeSpan)

이벤트 페이로드를 생성합니다.

CommandErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, Boolean, Boolean, DateTimeOffset, TimeSpan)
사용되지 않음.

이벤트 페이로드를 생성합니다.

CommandErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, Boolean, Boolean, DateTimeOffset, TimeSpan, CommandSource)

이벤트 페이로드를 생성합니다.

CommandErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Exception, Boolean, Boolean, DateTimeOffset, TimeSpan)

Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs

이벤트 페이로드를 생성합니다.

public CommandErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * bool * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), command As DbCommand, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, duration As TimeSpan)

매개 변수

eventDefinition
EventDefinitionBase

이벤트 정의입니다.

messageGenerator
Func<EventDefinitionBase,EventData,String>

이 이벤트에 대한 로그 메시지를 생성하는 대리자입니다.

command
DbCommand

DbCommand 실패할 때 실행 중인 입니다.

executeMethod
DbCommandMethod

DbCommand 명령을 실행하는 데 사용된 메서드입니다.

commandId
Guid

사용 중인 instance 식별하는 DbCommand 상관 관계 ID입니다.

connectionId
Guid

사용 중인 instance 식별하는 DbConnection 상관 관계 ID입니다.

exception
Exception

실행이 실패할 때 throw된 예외입니다.

async
Boolean

명령이 비동기적으로 실행되었는지 여부를 나타냅니다.

logParameterValues
Boolean

애플리케이션에서 매개 변수 값의 로깅을 허용하는지 여부를 나타냅니다.

startTime
DateTimeOffset

이 이벤트의 시작 시간입니다.

duration
TimeSpan

이 이벤트의 기간입니다.

적용 대상

CommandErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, Boolean, Boolean, DateTimeOffset, TimeSpan)

Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs

주의

Use the overload with CommandSource

이벤트 페이로드를 생성합니다.

public CommandErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration);
[System.Obsolete("Use the overload with CommandSource")]
public CommandErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * bool * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * bool * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, duration As TimeSpan)

매개 변수

eventDefinition
EventDefinitionBase

이벤트 정의입니다.

messageGenerator
Func<EventDefinitionBase,EventData,String>

이 이벤트에 대한 로그 메시지를 생성하는 대리자입니다.

connection
DbConnection

DbConnection 사용 중인 입니다.

command
DbCommand

DbCommand 실패할 때 실행 중인 입니다.

context
DbContext

현재 사용 중인 입니다 DbContext . 알 수 없는 경우 null입니다.

executeMethod
DbCommandMethod

DbCommand 명령을 실행하는 데 사용된 메서드입니다.

commandId
Guid

사용 중인 instance 식별하는 DbCommand 상관 관계 ID입니다.

connectionId
Guid

사용 중인 instance 식별하는 DbConnection 상관 관계 ID입니다.

exception
Exception

실행이 실패할 때 throw된 예외입니다.

async
Boolean

명령이 비동기적으로 실행되었는지 여부를 나타냅니다.

logParameterValues
Boolean

애플리케이션에서 매개 변수 값의 로깅을 허용하는지 여부를 나타냅니다.

startTime
DateTimeOffset

이 이벤트의 시작 시간입니다.

duration
TimeSpan

이 이벤트의 기간입니다.

특성

적용 대상

CommandErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, Boolean, Boolean, DateTimeOffset, TimeSpan, CommandSource)

Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs
Source:
CommandErrorEventData.cs

이벤트 페이로드를 생성합니다.

public CommandErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * Exception * bool * bool * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, exception As Exception, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)

매개 변수

eventDefinition
EventDefinitionBase

이벤트 정의입니다.

messageGenerator
Func<EventDefinitionBase,EventData,String>

이 이벤트에 대한 로그 메시지를 생성하는 대리자입니다.

connection
DbConnection

DbConnection 사용 중인 입니다.

command
DbCommand

DbCommand 실패할 때 실행 중인 입니다.

context
DbContext

현재 사용 중인 입니다 DbContext . 알 수 없는 경우 null입니다.

executeMethod
DbCommandMethod

DbCommand 명령을 실행하는 데 사용된 메서드입니다.

commandId
Guid

사용 중인 instance 식별하는 DbCommand 상관 관계 ID입니다.

connectionId
Guid

사용 중인 instance 식별하는 DbConnection 상관 관계 ID입니다.

exception
Exception

실행이 실패할 때 throw된 예외입니다.

async
Boolean

명령이 비동기적으로 실행되었는지 여부를 나타냅니다.

logParameterValues
Boolean

애플리케이션에서 매개 변수 값의 로깅을 허용하는지 여부를 나타냅니다.

startTime
DateTimeOffset

이 이벤트의 시작 시간입니다.

duration
TimeSpan

이 이벤트의 기간입니다.

commandSource
CommandSource

명령의 원본입니다.

적용 대상