C# must declare scalar variable @
<pre><code>addbuton_click{ 

sqlcon.Open(); 
string ekleString = "INSERT INTO FilmTablo2(ad,yonetmen,tur,senaryo,oyuncular,sure,resimadres)VALUES(@ad,@yonetmen,@tur,@senaryo,@oyuncular,@sure,@hedefdizin); SET IDENTITY_INSERT dbo.FilmTablo2 ON;"; 

           SqlCommand ekle = new SqlCommand(ekleString, sqlcon); 
           ekle.Parameters.AddWithValue("@ad", txtad.Text); 
           ekle.Parameters.AddWithValue("@senaryo", txtsenaryo.Text); 
           ekle.Parameters.AddWithValue("@tur", txttur.Text); 
           ekle.Parameters.AddWithValue("@yonetmen", txtyonetmen.Text); 
           ekle.Parameters.AddWithValue("@oyuncular", txtoyuncular.Text); 
           ekle.Parameters.AddWithValue("@sure", txtsure.Text); 
           ekle.Parameters.AddWithValue("@resimadres", hedefdizin); 
           ekle.ExecuteNonQuery(); 
           System.IO.File.Copy(openFileDialog1.FileName, hedefdizin, true); 
           MessageBox.Show("Başarıyla Eklendi..."); 
           sqlcon.Close(); 
}  

private void btnresimsec_Click(object sender, RoutedEventArgs e) 
    { 

        //C:\Users\LG\Documents\Visual Studio 2010\Projects\wpfFilm\wpfFilm\resimler 

        openFileDialog1.Title = "Lütfen Dosya Seçiniz"; 
        openFileDialog1.Filter = " (*.jpg)|*.jpg|(*.png)|*.png|(*.bmp)|*.bmp|(*.gif)|*.gif"; 
        openFileDialog1.FilterIndex = 1; 
        openFileDialog1.ShowDialog(); 
        //image1.Source = Image.FromFile(openFileDialog1.FileName); 

        hedefdizin = @"C:\Users\LG\Documents\Visual Studio 2010\Projects\wpfFilm\wpfFilm\resimler\" + listBox1.Items.Count.ToString() + openFileDialog1.SafeFileName.Substring(openFileDialog1.SafeFileName.Length - 4); 
        image1.Source = new BitmapImage(new Uri(openFileDialog1.FileName)); }
</code></pre>

<p>hi
I know there are very too much question about same error.but I dont understand where is the problem in my code.it giving must "declare scalar variable @hedefdizin" error.What is the missing thing?</p>
