Share via


ConnectionCreatingEventData Class

Definition

The DiagnosticSource event payload for ConnectionCreating events.

[System.Runtime.CompilerServices.Nullable(0)]
public class ConnectionCreatingEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
public class ConnectionCreatingEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type ConnectionCreatingEventData = class
    inherit DbContextEventData
type ConnectionCreatingEventData = class
    inherit DbContextEventData
Public Class ConnectionCreatingEventData
Inherits DbContextEventData
Inheritance
ConnectionCreatingEventData
Attributes

Remarks

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

Constructors

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

Constructs the event payload.

Properties

Name Description
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

Name Description
ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to