ConnectionCreatedEventData Class

Definition

The DiagnosticSource event payload for ConnectionCreated events.

public class ConnectionCreatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
type ConnectionCreatedEventData = class
    inherit DbContextEventData
Public Class ConnectionCreatedEventData
Inherits DbContextEventData
Inheritance
ConnectionCreatedEventData

Remarks

See Logging, events, and diagnostics for more information and examples.

Constructors

ConnectionCreatedEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, DateTimeOffset, TimeSpan)

Constructs the event payload.

Properties

Connection

The DbConnection.

ConnectionId

A correlation ID that identifies the DbConnection instance being used.

Context

The current DbContext.

(Inherited from DbContextEventData)
Duration

The duration of this event.

EventId

The EventId that defines the message ID and name.

(Inherited from EventData)
EventIdCode

A string representing the code where this event is defined.

(Inherited from EventData)
LogLevel

The LogLevel that would be used to log message for this event.

(Inherited from EventData)
StartTime

The start time of this event.

Methods

ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to