Use this code
command.Parameters.Add("@uname", tBuime.Text);
command.Parameters.Add("@pass", tBgeslo.Text);
command.Parameters.Add("@mail", tBeposta.Text);
adapter.InsertCommand = command;
adapter.InsertCommand.ExecuteNonQuery();
connection.Close();
Hope this will help you if it works fine then accept this answer
Thanks...