示例#1
0
        public Boolean Exists(string name, string categoryid)
        {
            string SQL = "SELECT COUNT(*) FROM mst_subcategory WHERE name = '" + name + "' AND categoryid =" + categoryid;
            DBTool dbTool = new DBTool();

            if (dbTool.GetCountRecord(SQL) > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
示例#2
0
        public Boolean Exists(string name)
        {
            string SQL = "SELECT COUNT(*) FROM mst_publisher WHERE name = '" + name + "'";
            DBTool dbTool = new DBTool();

            if (dbTool.GetCountRecord(SQL) > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }