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

            if (rowsCount > 0)
            {
                university.Model.CCOM.Musical_instrument model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new university.Model.CCOM.Musical_instrument();
                    if (dt.Rows[n]["Mi_id"].ToString() != "")
                    {
                        model.Mi_id = int.Parse(dt.Rows[n]["Mi_id"].ToString());
                    }
                    model.Mi_name = dt.Rows[n]["Mi_name"].ToString();


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