Share via


ConnectionCreatingEventData Class

Definition

The DiagnosticSource event payload for ConnectionCreating events.

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

Remarks

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

Constructors

ConnectionCreatingEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbContext, String, Guid, DateTimeOffset)

Constructs the event payload.

Properties

ConnectionId

A correlation ID that identifies the DbConnection instance being used.

ConnectionString

The connection string for the new connection, if known.

Context

The current DbContext.

(Inherited from DbContextEventData)
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