public void TestUpdateUser() { string userId = "10"; SYS_USER user = m_SysUserDal.Get(userId); if (user != null) { user.UPDATE_USERID = "1"; user.REMARK = "测试修改用户" + _rnd.Next(1, 100); m_SysUserDal.Update(user); Console.WriteLine("用户 ID=" + user.ID + " 已修改"); } else { Console.WriteLine("用户 ID=" + userId + " 不存在"); } }
/// <summary> /// 更新用户信息 /// </summary> /// <param name="user">用户实体</param> /// <returns></returns> public OperateResultModel UpdateUser(sysuser user) { SysUserDal dal = new SysUserDal(); return(dal.Update(user)); }