/// <summary>
 /// 加载数据
 /// </summary>
 public void LoadDatas(DataTable datas)
 {
     if (datas == null || datas.Rows == null)
     {
         ScrapyCachePool.LogInfo("【客户端缓存列信息表】数据加载失败:数据集为空");
         return;
     }
     foreach (DataRow row in datas.Rows)
     {
         try
         {
             bool uniqueKey = false;
             bool.TryParse(row["主键"].ToString(), out uniqueKey);
             ClientCacheConfigColumn config = new ClientCacheConfigColumn()
             {
                 表名     = row["表名"].ToString(),
                 标准字段   = row["标准字段"].ToString(),
                 标准字段名称 = row["标准字段名称"].ToString(),
                 数据类型   = row["数据类型"].ToString(),
                 主键     = uniqueKey,
             };
             this.Add(config);
         }
         catch (Exception ex)
         {
             ScrapyCachePool.LogError(string.Format("【客户端缓存列信息表】数据加载错误:{0};StackTrace:{1}", ex.Message, ex.StackTrace));
         }
     }
 }
        /// <summary>
        /// 拷贝
        /// </summary>
        /// <param name="des"></param>
        public override void Copy(ICacheItem des)
        {
            base.Copy(des);
            ClientCacheConfigColumn model = des as ClientCacheConfigColumn;

            model.表名     = this.表名;
            model.标准字段   = this.标准字段;
            model.标准字段名称 = this.标准字段名称;
            model.数据类型   = this.数据类型;
            model.主键     = this.主键;
        }
        /// <summary>
        /// 获取索引(按表名)
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        private string GetTableIndex(ICacheItem item)
        {
            if (item == null)
            {
                throw new Exception(string.Format("缓存表【{0}】获取索引错误,缓存项为空", this.TableName));
            }
            ClientCacheConfigColumn cache = item as ClientCacheConfigColumn;

            if (cache == null)
            {
                throw new Exception(string.Format("缓存表【{0}】获取索引错误,缓存项目信息转换错误", this.TableName));
            }
            return(cache.表名);
        }