Exemplo n.º 1
0
        /// <summary>
        /// 获取缓存中的Reader
        /// </summary>
        /// <param name="tables">表</param>
        /// <param name="sql">SQL语句</param>
        /// <param name="lstParam">变量集合</param>
        /// <returns></returns>
        public IDataReader SetReader(IDataReader reader, IDictionary <string, bool> tables,
                                     string sql, ParamList lstParam, DataBaseOperate oper)
        {
            if (_cache == null)
            {
                return(null);
            }

            DataSet        ds      = CacheReader.GenerateDataSet(reader, false);
            MemCacheReader mreader = new MemCacheReader(ds);

            SetDataSet(ds, tables, sql, lstParam, oper);
            return(mreader);
        }