TransactionEventData 构造函数

定义

重载

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, Guid, Guid, DateTimeOffset)

构造事件有效负载。

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, DateTimeOffset)

构造事件有效负载。

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, Guid, Guid, DateTimeOffset)

Source:
TransactionEventData.cs
Source:
TransactionEventData.cs

构造事件有效负载。

public TransactionEventData (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, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Guid * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, transactionId As Guid, connectionId As Guid, startTime As DateTimeOffset)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

transaction
DbTransaction

DbTransaction

transactionId
Guid

标识正在使用的实体框架事务的相关 ID。

connectionId
Guid

标识正在使用的实例的相关 DbConnection ID。

startTime
DateTimeOffset

此事件的开始时间。

适用于

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, DateTimeOffset)

Source:
TransactionEventData.cs
Source:
TransactionEventData.cs
Source:
TransactionEventData.cs
Source:
TransactionEventData.cs
Source:
TransactionEventData.cs
Source:
TransactionEventData.cs
Source:
TransactionEventData.cs

构造事件有效负载。

public TransactionEventData (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, DateTimeOffset startTime);
public TransactionEventData (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, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData
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, startTime As DateTimeOffset)

参数

eventDefinition
EventDefinitionBase

事件定义。

messageGenerator
Func<EventDefinitionBase,EventData,String>

生成此事件的日志消息的委托。

transaction
DbTransaction

DbTransaction

context
DbContext

当前 DbContext 正在使用的 ;如果未知, null 则为 。

transactionId
Guid

标识正在使用的实体框架事务的相关 ID。

connectionId
Guid

标识正在使用的实例的相关 DbConnection ID。

async
Boolean

指示是否异步使用事务。

startTime
DateTimeOffset

此事件的开始时间。

适用于