Example #1
0
        public void UpdateTable(string table, string updateCondition, string[] columnNames, string[] valuesNames, object[] values)
        {
            try
            {
                realMarketDB.UpdateTable(table, updateCondition, columnNames, valuesNames, values);
            }
            catch (InvalidOperationException)
            {
                if (!realMarketDB.IsConnected() || MarketDB.ToDisable)
                {
                    throw new DataException();
                }

                throw;
            }
            catch (SqlException e)
            {
                if (!IsConnected(e.Message) || MarketDB.ToDisable)
                {
                    throw new DataException();
                }

                throw;
            }
        }