語言

CommandErrorEventData 建構函式

定義

多載

名稱 Description
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>, DbConnection, DbCommand, String, 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)

來源:
CommandErrorEventData.cs
來源:
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

一個識別 DbCommand 所使用的實例的相關ID。

connectionId
Guid

一個識別 DbConnection 所使用的實例的相關ID。

exception
Exception

執行失敗時拋出的例外。

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)

來源:
CommandErrorEventData.cs
來源:
CommandErrorEventData.cs
來源:
CommandErrorEventData.cs
來源:
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 若未知,則用來消除。

executeMethod
DbCommandMethod

執行 DbCommand 指令的方法。

commandId
Guid

一個識別 DbCommand 所使用的實例的相關ID。

connectionId
Guid

一個識別 DbConnection 所使用的實例的相關ID。

exception
Exception

執行失敗時拋出的例外。

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)

來源:
CommandErrorEventData.cs
來源:
CommandErrorEventData.cs
來源:
CommandErrorEventData.cs
來源:
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 若未知,則用來消除。

executeMethod
DbCommandMethod

執行 DbCommand 指令的方法。

commandId
Guid

一個識別 DbCommand 所使用的實例的相關ID。

connectionId
Guid

一個識別 DbConnection 所使用的實例的相關ID。

exception
Exception

執行失敗時拋出的例外。

async
Boolean

表示指令是否以非同步方式執行。

logParameterValues
Boolean

表示應用程式是否允許參數值的記錄。

startTime
DateTimeOffset

這個活動的開始時間。

duration
TimeSpan

這個活動的持續時間。

commandSource
CommandSource

命令來源。

適用於

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

來源:
CommandErrorEventData.cs
來源:
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, string logCommandText, 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 * string * 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, logCommandText As String, 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那個正在執行時失敗了。

logCommandText
String

可以記錄的指令文字。

context
DbContext

目前使用的是 DbContext 若未知,則用來消除。

executeMethod
DbCommandMethod

執行 DbCommand 指令的方法。

commandId
Guid

一個識別 DbCommand 所使用的實例的相關ID。

connectionId
Guid

一個識別 DbConnection 所使用的實例的相關ID。

exception
Exception

執行失敗時拋出的例外。

async
Boolean

表示指令是否以非同步方式執行。

logParameterValues
Boolean

表示應用程式是否允許參數值的記錄。

startTime
DateTimeOffset

這個活動的開始時間。

duration
TimeSpan

這個活動的持續時間。

commandSource
CommandSource

命令來源。

適用於