예제 #1
0
파일: Trail.cs 프로젝트: TjcJose/Hi
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(BasTrail model)
        {
            var strb = new StringBuilder();

            strb.Append(" Update bas_trail ");
            strb.Append(" Set ");
            //strb.Append("id         = " + model.Id + ",");
            strb.Append("org_name        = '" + model.OrgName + "' ");

            //strb.Append("title        = '" + model.Title + "',");
            //strb.Append("remark       = '" + model.Remark + "',");
            //strb.Append("sort         = '" + model.Sort + "',");

            strb.Append(" where  id = 1");

            return DataBase.ExecuteNonQuery(strb.ToString()) > 0;
        }
예제 #2
0
파일: Trail_BLL.cs 프로젝트: TjcJose/Hi
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool TrailUpdate(BasTrail model)
 {
     return dal.Update(model);
 }