protected override void OnClose()
        {
            // Rollback uncommitted operations
            if (InternalTransaction != null)
            {
                TransactionRollback();
            }

            InternalConnection.Close();
        }
예제 #2
0
 override public void Close()
 {
     try
     {
         InternalConnection.Close();
     }
     catch (SqlException ex)
     {
         throw new DataException(ex.Message, ex);
     }
 }
 override public void Close()
 {
     try
     {
         CheckState(false);
         InternalConnection.Close();
     }
     catch (Exception ex)
     {
         throw new DataException(ex.Message, ex);
     }
 }