public bool InserUser(MUser mUser) { var intRst = Insert("MUser", new { UserName = mUser.UserName, Password = mUser.Password, FullName = mUser.FullName, Email = mUser.Email, UpdateTime = mUser.UpdateTime, Role = mUser.Role, }); return(intRst > 0); }
public bool UpdateUser(MUser mUser) { var intRst = Update("MUser", new string[] { "UserId" }, new { UserId = mUser.UserId, UserName = mUser.UserName, Password = mUser.Password, FullName = mUser.FullName, Email = mUser.Email, UpdateTime = mUser.UpdateTime, Role = mUser.Role, }); return(intRst > 0); }