private void DetachConnection() { if (this.wrappedConnection != null) { this.wrappedConnection.Release(this); this.wrappedConnection = null; } }
/// <summary> /// Creates a new WrappedTransaction instance.</summary> /// <param name="transaction"> /// The actual transaction, this wrapped transaction is created for.</param> internal WrappedTransaction(WrappedConnection wrappedConnection, IDbTransaction actualTransaction) { this.wrappedConnection = wrappedConnection; this.actualTransaction = actualTransaction; }