Пример #1
0
        /// <summary>
        /// 查询返回数量
        /// </summary>
        /// <param name="condition">查询条件</param>
        /// <returns></returns>
        public virtual int QueryCount(QueryCondition condition)
        {
            condition.JustGetCount();
            DataSet ds = QueryBase(condition);

            if (ds != null && ds.Tables[0] != null)
            {
                return(int.Parse(ds.Tables[0].Rows[0][0].ToString()));
            }
            return(0);
        }