Table of Contents

Struct ConnectionEventData

Namespace
NextORM.Core
Assembly
nextorm.core.dll

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

DataContext IDataContext

The context that owns the connection.

Connection DbConnection

The connection being opened.

Properties

Connection

The connection being opened.

public DbConnection Connection { get; init; }

Property Value

DbConnection

DataContext

The context that owns the connection.

public IDataContext DataContext { get; init; }

Property Value

IDataContext