單項選擇題

你要用VisualStudio.NET設(shè)計一個基于windows的程序,你的程序包含一個名為CustomerForm的form,它包含下面控件:
名為TestKingConnection的SQLConnection對象
名為TestKingDataAdapter的SQLDataAdapter對象
名為CustomerDataSet的DataSet對象
5個TextBox與CustomerDataSet綁定
一個名為saveButton的Button在設(shè)計的時候你為每個TextBox的DataBindings屬性為CustomerDataSet的DataTable特定的列當(dāng)程序運(yùn)行的時候,用戶必須能夠編輯textboxes顯示的信息,當(dāng)點(diǎn)擊saveButton所有用戶的改變必須保存到合適的數(shù)據(jù)庫,這個按鈕事件包含下面的程序片段TestKingDataAdapter.Update(CustomerDataSet);你編譯程序,但是saveButton沒有保存任何改變你需要改正這個問題:()

A.Call the InsertCommand method of TestKingDa taAdapter.運(yùn)行TestKingDataAdapter中的InsertCommand方法
B.CALL THE Update method of TestKingDataAdapter and pass in TestKingConnection.運(yùn)行TestKingDataAdapter的Update方法并且通過TestKingConnection
C.Before calling the Update method,ensur ethat a row position change occurs in CustomerDataSet.在運(yùn)行Upate方法,確保行位置在CustomerDataSet的改變
D.Rees tablish the database connecti on by calling the Open method of TestKingConnection.重新連接數(shù)據(jù)庫通過運(yùn)行TestKingConnection

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題