Inheritance: IDbTransaction
Beispiel #1
0
        /// <summary>
        /// Begins a database transaction.
        /// </summary>
        /// <returns>
        /// An object representing the new transaction.
        /// </returns>
        public IDbTransaction BeginTransaction()
        {
            var actualTransaction = actualConnection.BeginTransaction();

            currentTransaction = new WrappedTransaction(this, actualTransaction);
            return(currentTransaction);
        }
Beispiel #2
0
 internal void Release(WrappedTransaction transaction)
 {
     if (this.currentTransaction == transaction)
     {
         this.currentTransaction = null;
     }
 }
 public IDbTransaction BeginTransaction()
 {
     var actualTransaction = actualConnection.BeginTransaction();
     currentTransaction = new WrappedTransaction(this, actualTransaction);
     return currentTransaction;
 }
 internal void Release(WrappedTransaction transaction)
 {
     if (this.currentTransaction == transaction)
     {
         this.currentTransaction = null;
     }
 }