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

            if (rowsCount > 0)
            {
                MobileSoft.Model.Resources.Tb_Resources_ReleaseTrain model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.Resources.Tb_Resources_ReleaseTrain();
                    //model.ReleaseTrainID=dt.Rows[n]["ReleaseTrainID"].ToString();
                    model.ReleaseTrainContent  = dt.Rows[n]["ReleaseTrainContent"].ToString();
                    model.ReleaseTrainNeedKnow = dt.Rows[n]["ReleaseTrainNeedKnow"].ToString();
                    //model.ReleaseID=dt.Rows[n]["ReleaseID"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Resources.Tb_Resources_ReleaseTrain model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public long Add(MobileSoft.Model.Resources.Tb_Resources_ReleaseTrain model)
 {
     return(dal.Add(model));
 }