共用方式為


TransactionErrorEventData 建構函式

定義

多載

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, Guid, Guid, String, Exception, DateTimeOffset, TimeSpan)

建構事件承載。

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, String, Exception, DateTimeOffset, TimeSpan)

建構事件承載。

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, Guid, Guid, String, Exception, DateTimeOffset, TimeSpan)

來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs

建構事件承載。

public TransactionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Guid transactionId, Guid connectionId, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Guid * Guid * string * Exception * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, transactionId As Guid, connectionId As Guid, action As String, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件的記錄訊息的委派。

transaction
DbTransaction

DbTransaction

transactionId
Guid

識別所使用 Entity Framework 交易的相互關聯識別碼。

connectionId
Guid

識別所使用實例的 DbConnection 相互關聯識別碼。

action
String

其中一個「認可」或「復原」。

exception
Exception

交易失敗時擲回的例外狀況。

startTime
DateTimeOffset

此事件的開始時間。

duration
TimeSpan

此事件的持續時間。

適用於

TransactionErrorEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, String, Exception, DateTimeOffset, TimeSpan)

來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs
來源:
TransactionErrorEventData.cs

建構事件承載。

public TransactionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.DbContext context, Guid transactionId, Guid connectionId, bool async, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
public TransactionErrorEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.DbContext? context, Guid transactionId, Guid connectionId, bool async, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * bool * string * Exception * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionErrorEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, context As DbContext, transactionId As Guid, connectionId As Guid, async As Boolean, action As String, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan)

參數

eventDefinition
EventDefinitionBase

事件定義。

messageGenerator
Func<EventDefinitionBase,EventData,String>

產生此事件的記錄訊息的委派。

transaction
DbTransaction

DbTransaction

context
DbContext

DbContext目前使用的 ,如果 null 不知道,則為 。

transactionId
Guid

識別所使用 Entity Framework 交易的相互關聯識別碼。

connectionId
Guid

識別所使用實例的 DbConnection 相互關聯識別碼。

async
Boolean

指出交易是否以非同步方式使用。

action
String

其中一個「認可」或「復原」。

exception
Exception

交易失敗時擲回的例外狀況。

startTime
DateTimeOffset

此事件的開始時間。

duration
TimeSpan

此事件的持續時間。

適用於