c# - Update requires a valid UpdateCommand when passed DataRow collection with modified rows -


I am using the following code to update the rows in the database table:

 < Code> MissioniDataSet MissingDeset = New Ms.DateSet (); Missionary Diary Adapter MissionDiraiable Adapter = New MisdiitableTableAdapter (); MissioniDiarieTableAdapter.Fill (missioniDataSet.MissioniDiarie); Forward (Missionary Dataset Missionary DataAssetMishini Diary.Row) (Eye Diarrhea = Decimal. Purse ((Textbox) Page. Font Control ("Import" + Eye diarrheaed)). Text;) I.AccontoMax = Decimal .Parse (Textbox) Page.FindControl ("acconto" + i. Diarrheaide).);} MissionIditionalAptactor Update (Miskindetacet Mascindirai);  

But when I run it I get the following error:

Modified lines To pass the Detroe collection, a valid UpdateCommand is required.

Why? How can I resolve this?

itemprop = "text">

The error is quite literal and clear, the problem is with your adapter, it is missing an updated SQL statement

You are using a Generated Adapter as an attempts to reconfigure it but be careful, a little bit more than normal Trend> SELECT x, y fROM t patterns and tools will fail. But you can always write the update (and maybe you need to DELETE, INSERT as well as) the statement itself.


Comments