public static bool Exists(string connectionString, string strOracle) { object obj = OracleHelper.GetSingle(connectionString, strOracle); int cmdresult; if (object.Equals(obj, null) || object.Equals(obj, DBNull.Value)) { cmdresult = 0; } else { cmdresult = int.Parse(obj.ToString()); } return(cmdresult != 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; } }