Struct SqlDatabaseConnectionChangeEvent
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
DbConnectionDB connection whose state has changed.
StateChange
StateChangeEventArgsUnderlying StateChangeEventArgs instance.
Properties
Connection
DB connection whose state has changed.
public DbConnection Connection { get; init; }
Property Value
StateChange
Underlying StateChangeEventArgs instance.
public StateChangeEventArgs StateChange { get; init; }