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

            if (rowsCount > 0)
            {
                university.Model.CCOM.Exam_preliminary_subject model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new university.Model.CCOM.Exam_preliminary_subject();
                    if (dt.Rows[n]["Eps_id"].ToString() != "")
                    {
                        model.Eps_id = int.Parse(dt.Rows[n]["Eps_id"].ToString());
                    }
                    if (dt.Rows[n]["Major_id"].ToString() != "")
                    {
                        model.Major_id = int.Parse(dt.Rows[n]["Major_id"].ToString());
                    }
                    if (dt.Rows[n]["Esn_id"].ToString() != "")
                    {
                        model.Esn_id = int.Parse(dt.Rows[n]["Esn_id"].ToString());
                    }
                    if (dt.Rows[n]["Period_id"].ToString() != "")
                    {
                        model.Period_id = int.Parse(dt.Rows[n]["Period_id"].ToString());
                    }


                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(university.Model.CCOM.Exam_preliminary_subject model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(university.Model.CCOM.Exam_preliminary_subject model)
 {
     return(dal.Add(model));
 }