public void EditUserInfo(UserView view) { var user = Context.Users.Where(n => n.Id == view.Id).Select(n => n).FirstOrDefault(); user.Account = view.Account; user.Uname = view.Uname; user.Email = view.Email; user.Password = view.Password; Context.SaveChanges(); }
public void Init() { UserView user = new UserView { Id = 1, Account = "Ice", Uname = "彬哥", Password = "******", Email = "*****@*****.**" }; SerializeUtils.Serialize(path, user); }
public void EditUserInfo(UserView view) { SerializeUtils.Serialize(path, view); }
public void ChangeSkin(UserView view) { SerializeUtils.Serialize(path, view); }
public void ChangeSkin(UserView view) { var user = Context.Users.Where(n => n.Id == view.Id).Select(n => n).FirstOrDefault(); user.Skin = view.Skin; Context.SaveChanges(); }