I'm getting this compile error message. How do I solve it?
Error 28 'WindowsFormsApplication1.SqlCommand' does not contain a definition for 'Parameters' and no extension method 'Parameters' accepting a first argument of type 'WindowsFormsApplication1.SqlCommand' could be found (are you missing a using directive or an assembly reference?) C:\Users\cofex\Desktop\Gestion de salair - pompier - ARAB - Copy - Copy\Gestion de salair - pompier - ARAB - Copy - Copy\WindowsFormsApplication1\Classes\employeurclass.cs 152 26 WindowsFormsApplication1
On this code:
SqlCommand command = new SqlCommand (query, _connection); // Form1.connection.Open();
command.Parameters.AddWithValue("@N_Securite_Social", N_Securite_Social);
command.Parameters.AddWithValue("@N_CCP", N_CCP);