Update requires a valid InsertCommand when passed DataRow collection with new rows

前端 未结 3 1739
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 17:11

I am trying to add a new row to my database . Here is my code :

ds1 is my Dataset , da1 is my data adapter

        dRow = ds1.Tables[\"localitati\"]         


        
3条回答
  •  [愿得一人]
    2020-12-06 17:49

    You must define an InsertCommand for you DataAdapter

    http://www.codeproject.com/KB/database/relationaladonet.aspx

提交回复
热议问题