这是我的第一次。嗨,我正在做一个 SQL 项目并编写一个 C# 程序来检索它。但我无法解决这个错误。请帮助我。Thanks.here 我的代码:
private void Insert_Click(object sender, EventArgs e) {
var db = new DataClasses1DataContext();
db.ExecuteCommand("INSERT INTO Students VALUES ({105},{ali},{askari}, {ma@yahoo.com},{091345})",
new object[] { textBox1.Text, textBox2.Text, textBox3.Text, textBox5.Text, textBox6.Text });
dataGridView1.DataSource = db.Students;
}