Exemple #1
0
        public int GetTotalCount(string DBName)
        {
            string strSql = " select count(" + PrimaryKey + ") from " + _TableName;

            if (_QueryCondition != string.Empty)
            {
                strSql += " where 1=1" + _QueryCondition;
            }
            return((int)OleDbHelper.ExecuteScalar(DBName, strSql));
        }