Struct ConnectionEventData
Metadata about a connection as it is opened. Created by the context's connection axis and passed to the interceptors registered for it.
public readonly record struct ConnectionEventData : IEquatable<ConnectionEventData>
- Implements
- Inherited Members
- Extension Methods
Constructors
ConnectionEventData(IDataContext, DbConnection)
Metadata about a connection as it is opened. Created by the context's connection axis and passed to the interceptors registered for it.
public ConnectionEventData(IDataContext DataContext, DbConnection Connection)
Parameters
DataContextIDataContextThe context that owns the connection.
ConnectionDbConnectionThe connection being opened.
Properties
Connection
The connection being opened.
public DbConnection Connection { get; init; }
Property Value
DataContext
The context that owns the connection.
public IDataContext DataContext { get; init; }