System.Data.SqlClient.SqlTransaction.Zombie C# (CSharp) Method

Zombie() private method

private Zombie ( ) : void
return void
        internal void Zombie()
        {
            // For Yukon, we have to defer "zombification" until
            //                 we get past the users' next rollback, else we'll
            //                 throw an exception there that is a breaking change.
            //                 Of course, if the connection is already closed, 
            //                 then we're free to zombify...
            SqlInternalConnection internalConnection = (_connection.InnerConnection as SqlInternalConnection);
            if (internalConnection == null || _isFromAPI)
            {
                _internalTransaction = null; // pre-yukon zombification
            }
        }

Usage Example

Exemplo n.º 1
0
 private void ZombieParent()
 {
     if (this._parent != null)
     {
         SqlTransaction target = (SqlTransaction)this._parent.Target;
         if (target != null)
         {
             target.Zombie();
         }
         this._parent = null;
     }
 }
All Usage Examples Of System.Data.SqlClient.SqlTransaction::Zombie