Exemple #1
0
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  BasicMethod
        #region  ExtensionMethod
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public string AddStudent(Lythen.Model.student model)
        {
            for (int i = 0; i < 5; i++)
            {
                model.stu_id = DateTime.Now.ToString("yyyyMMddHHmmssff");
                if (dal.Add(model))
                {
                    return(model.stu_id);
                }
            }
            return("");
        }
Exemple #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Lythen.Model.student model)
 {
     return(dal.Update(model));
 }
Exemple #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Lythen.Model.student model)
 {
     return(dal.Add(model));
 }