[开源]数据访问和更新
private void btnLoad_Click(object sender, System.EventArgs e)
{
dsAuthors1.Clear();
sqlDataAdapter1.Fill(dsAuthors1);
}
private void btnUpdate_Click(object sender, System.EventArgs e)
{
sqlDataAdapter1.Update(dsAuthors1);
MessageBox.Show("数据库已更新!");
}