Class TransactionStartingEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
The DiagnosticSource event payload base class for RelationalEventId transaction events.
public class TransactionStartingEventData : DbContextEventData
- Inheritance
-
TransactionStartingEventData
Constructors
TransactionStartingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, DbContext, IsolationLevel, Guid, Guid, bool, DateTimeOffset)
Constructs the event payload.
public TransactionStartingEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, DbContext context, IsolationLevel isolationLevel, Guid transactionId, Guid connectionId, bool async, DateTimeOffset startTime)
Parameters
eventDefinition
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
context
DbContextThe Microsoft.EntityFrameworkCore.DbContext currently in use, or null if not known.
isolationLevel
IsolationLevelThe transaction isolation level.
transactionId
GuidA correlation ID that identifies the Entity Framework transaction being used.
connectionId
GuidA correlation ID that identifies the DbConnection instance being used.
async
boolIndicates whether or not the transaction is being used asynchronously.
startTime
DateTimeOffsetThe start time of this event.
Properties
ConnectionId
A correlation ID that identifies the DbConnection instance being used.
public virtual Guid ConnectionId { get; }
Property Value
IsAsync
Indicates whether or not the transaction is being used asynchronously.
public virtual bool IsAsync { get; }
Property Value
IsolationLevel
The transaction isolation level.
public virtual IsolationLevel IsolationLevel { get; }
Property Value
StartTime
The start time of this event.
public virtual DateTimeOffset StartTime { get; }
Property Value
TransactionId
A correlation ID that identifies the Entity Framework transaction being used.
public virtual Guid TransactionId { get; }