Пример #1
0
 public void Update(User user)
 {
     using (SqlConnection connection = Connection)
     {
         connection.Open();
         connection.Execute("UPDATE Users set Alias = @Alias where Id = @Id", new { Alias = user.Alias, Id = user.Id });
     }
 }
 public void Update(User user)
 {
     this.users.Update(user);
 }