这是我的代码:
oledbcm = new OleDbCommandBuilder(oleDbDataAdabter);
DataRow dataRow = myDataset.Tables["salam"].NewRow();
dataRow[1] = textBox2.Text;
dataRow[2] = textBox3.Text;
dataRow[3] = textBox4.Text;
dataRow[4] = textBox5.Text;
myDataset.Tables["salam"].Rows.Add(dataRow);
oleDbDataAdabter.Update(myDataset , "salam");
当我运行它时,它会出现这个错误:
InvalidOperationException 未处理;
ConnectionString 属性尚未初始化。