/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <NovelManager.Model.novel_chapter_content> DataTableToList(DataTable dt)
        {
            List <NovelManager.Model.novel_chapter_content> modelList = new List <NovelManager.Model.novel_chapter_content>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                NovelManager.Model.novel_chapter_content model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new NovelManager.Model.novel_chapter_content();
                    if (dt.Rows[n]["base_id"] != null && dt.Rows[n]["base_id"].ToString() != "")
                    {
                        model.base_id = long.Parse(dt.Rows[n]["base_id"].ToString());
                    }
                    if (dt.Rows[n]["Nid"] != null && dt.Rows[n]["Nid"].ToString() != "")
                    {
                        model.nid = dt.Rows[n]["Nid"].ToString();
                    }
                    if (dt.Rows[n]["Cid"] != null && dt.Rows[n]["Cid"].ToString() != "")
                    {
                        model.cid = int.Parse(dt.Rows[n]["Cid"].ToString());
                    }
                    if (dt.Rows[n]["Content"] != null && dt.Rows[n]["Content"].ToString() != "")
                    {
                        model.content = dt.Rows[n]["Content"].ToString();
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 获得数据列表
 /// </summary>
 public List<NovelManager.Model.novel_chapter_content> DataTableToList(DataTable dt)
 {
     List<NovelManager.Model.novel_chapter_content> modelList = new List<NovelManager.Model.novel_chapter_content>();
     int rowsCount = dt.Rows.Count;
     if (rowsCount > 0)
     {
         NovelManager.Model.novel_chapter_content model;
         for (int n = 0; n < rowsCount; n++)
         {
             model = new NovelManager.Model.novel_chapter_content();
             if(dt.Rows[n]["base_id"]!=null && dt.Rows[n]["base_id"].ToString()!="")
             {
                 model.base_id=long.Parse(dt.Rows[n]["base_id"].ToString());
             }
             if(dt.Rows[n]["Nid"]!=null && dt.Rows[n]["Nid"].ToString()!="")
             {
             model.nid=dt.Rows[n]["Nid"].ToString();
             }
             if(dt.Rows[n]["Cid"]!=null && dt.Rows[n]["Cid"].ToString()!="")
             {
                 model.cid=int.Parse(dt.Rows[n]["Cid"].ToString());
             }
             if(dt.Rows[n]["Content"]!=null && dt.Rows[n]["Content"].ToString()!="")
             {
             model.content=dt.Rows[n]["Content"].ToString();
             }
             modelList.Add(model);
         }
     }
     return modelList;
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(NovelManager.Model.novel_chapter_content model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(NovelManager.Model.novel_chapter_content model)
 {
     return(dal.Add(model));
 }