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

            if (rowsCount > 0)
            {
                eChartProject.Model.eChart.server_contents_answers model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new eChartProject.Model.eChart.server_contents_answers();
                    if (dt.Rows[n]["ID"] != null && dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    if (dt.Rows[n]["MessageID"] != null && dt.Rows[n]["MessageID"].ToString() != "")
                    {
                        model.MessageID = int.Parse(dt.Rows[n]["MessageID"].ToString());
                    }
                    if (dt.Rows[n]["Answer"] != null && dt.Rows[n]["Answer"].ToString() != "")
                    {
                        model.Answer = dt.Rows[n]["Answer"].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_answers model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(eChartProject.Model.eChart.server_contents_answers model)
 {
     dal.Add(model);
 }