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

            if (rowsCount > 0)
            {
                eChartProject.Model.eChart.server_contents_theases model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new eChartProject.Model.eChart.server_contents_theases();
                    if (dt.Rows[n]["ID"] != null && dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    if (dt.Rows[n]["FolderID"] != null && dt.Rows[n]["FolderID"].ToString() != "")
                    {
                        model.FolderID = int.Parse(dt.Rows[n]["FolderID"].ToString());
                    }
                    if (dt.Rows[n]["isOffLine"] != null && dt.Rows[n]["isOffLine"].ToString() != "")
                    {
                        model.isOffLine = int.Parse(dt.Rows[n]["isOffLine"].ToString());
                    }
                    if (dt.Rows[n]["sortOrder"] != null && dt.Rows[n]["sortOrder"].ToString() != "")
                    {
                        model.sortOrder = int.Parse(dt.Rows[n]["sortOrder"].ToString());
                    }
                    if (dt.Rows[n]["Thease"] != null && dt.Rows[n]["Thease"].ToString() != "")
                    {
                        model.Thease = dt.Rows[n]["Thease"].ToString();
                    }
                    if (dt.Rows[n]["isDeleted"] != null && dt.Rows[n]["isDeleted"].ToString() != "")
                    {
                        model.isDeleted = int.Parse(dt.Rows[n]["isDeleted"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(eChartProject.Model.eChart.server_contents_theases model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(eChartProject.Model.eChart.server_contents_theases model)
 {
     dal.Add(model);
 }