Table of Contents

Struct SqlDatabaseConnectionChangeEvent

Namespace
LfrlAnvil.Sql.Objects.Builders
Assembly
LfrlAnvil.Sql.Core.dll

Represents an event that occurred due to a DB connection's state change.

public readonly record struct SqlDatabaseConnectionChangeEvent : IEquatable<SqlDatabaseConnectionChangeEvent>
Implements
Inherited Members

Constructors

SqlDatabaseConnectionChangeEvent(DbConnection, StateChangeEventArgs)

Represents an event that occurred due to a DB connection's state change.

public SqlDatabaseConnectionChangeEvent(DbConnection Connection, StateChangeEventArgs StateChange)

Parameters

Connection DbConnection

DB connection whose state has changed.

StateChange StateChangeEventArgs

Underlying StateChangeEventArgs instance.

Properties

Connection

DB connection whose state has changed.

public DbConnection Connection { get; init; }

Property Value

DbConnection

StateChange

Underlying StateChangeEventArgs instance.

public StateChangeEventArgs StateChange { get; init; }

Property Value

StateChangeEventArgs