Exemplo n.º 1
0
        public static bool Exists(string connectionString, string strOracle)
        {
            object obj = OracleHelper.GetSingle(connectionString, strOracle);
            int    cmdresult;

            if ((Object.Equals(obj, null)) || (Object.Equals(obj, System.DBNull.Value)))
            {
                cmdresult = 0;
            }
            else
            {
                cmdresult = int.Parse(obj.ToString());
            }
            if (cmdresult == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }