예제 #1
0
 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();
 }
예제 #2
0
        public void Init()
        {
            UserView user = new UserView
                            {
                                Id = 1,
                                Account = "Ice",
                                Uname = "彬哥",
                                Password = "******",
                                Email = "*****@*****.**"
                            };

            SerializeUtils.Serialize(path, user);
        }
예제 #3
0
 public void EditUserInfo(UserView view)
 {
     SerializeUtils.Serialize(path, view);
 }
예제 #4
0
 public void ChangeSkin(UserView view)
 {
     SerializeUtils.Serialize(path, view);
 }
예제 #5
0
 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();
 }