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
ConnectionDbConnectionDB connection whose state has changed.
StateChangeStateChangeEventArgsUnderlying 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; }