예제 #1
0
        public int GetCount(string strSql)
        {
            object obj = MySQLHelper.ExecuteScalar(SqlConnString, MySQLHelper.CreateCommand(strSql));

            if (obj == null)
            {
                return(0);
            }
            else
            {
                return(Convert.ToInt32(obj));
            }
        }