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

            if (rowsCount > 0)
            {
                DigiPower.Onlinecol.Standard.Model.T_QuestionToUser_MDL model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new DigiPower.Onlinecol.Standard.Model.T_QuestionToUser_MDL();
                    if (dt.Rows[n]["QuestionToUserID"].ToString() != "")
                    {
                        model.QuestionToUserID = int.Parse(dt.Rows[n]["QuestionToUserID"].ToString());
                    }
                    if (dt.Rows[n]["QuestionID"].ToString() != "")
                    {
                        model.QuestionID = int.Parse(dt.Rows[n]["QuestionID"].ToString());
                    }
                    if (dt.Rows[n]["ToUserID"].ToString() != "")
                    {
                        model.ToUserID = int.Parse(dt.Rows[n]["ToUserID"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(DigiPower.Onlinecol.Standard.Model.T_QuestionToUser_MDL model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(DigiPower.Onlinecol.Standard.Model.T_QuestionToUser_MDL model)
 {
     return(dal.Add(model));
 }