aglanti.Open();
SqlCommand komut = New SqlCommand("INSERT INTO hastakayit (Patient Name, Patient Surname, Patient Gender, Ulcerstage, Date of Entry, Age, Reason For Leaving, Bed No, Release Date) Values ( '" + NameTb. Text + "','" + SurnameTb. Text + "', '" + GenderTb. Text + "','" + UlcerstageTb. Text + "',
@date of Entry,'" + AgeTb. Text + "','" + RvTb. Text + "','" + BednoTb. Text + "',@Release Date)", baglanti);
Komut. Parameters. AddWithValue("
@date of Entry", DateTime. Now);
Komut. Parameters. AddWithValue("@Release Date", DateTime. Now);
komut.ExecuteNonQuery();
baglanti.Close(); //bağlantıyı kapa.
MessageBox. Show("kayıt eklendi");
listele();
Temizle();
komut.ExecuteNonQuery(); kısmına X işareti geliyor ve: 'Incorrect syntax near the keyword 'of'.
Incorrect syntax near 'Name'.'
Hatası alıyorum nasıl düzeltebilirim yardımcı olabilir misiniz?