You can use something like this:
using (SqlConnection connection = new SqlConnection("TheatreBooking"))// I guess "TheatreBooking" is your connectionString
{
connection.Open();
using (SqlCommand command = connection.CreateCommand())
{
command.CommandText = "INSERT INTO Customer ([Customer_First_Name],[Customer_Surname],
[Customer_Add_Ln_1],[Customer_Add_Ln_2],[Customer_Add_Ln_3],
[Customer_Add_Ln_4],[Customer_Postcode], [Customer_Tel],[Customer_Email]) VALUES
(@customer_first_name,@customer_surname,@customer_add_ln_1,
@customer_add_ln_2,@customer_add_ln_3,@customer_add_ln_4,
@customer_postcode,@customer_telephone,@customer_email)";
command.Parameters.AddWithValue("@customer_first_name",customerfirstname));
command.Parameters.AddWithValue("@customer_surname",customersurname));
....// you do the same for the rest (6)as the above line
command.ExecuteNonQuery();
}
}
If you are missing a library: add using System.Data.SqlClient;
I hope it will help you