I am having problem while executing the following code. Using Ngpsql Data Adapter. The function takes the datatable creates and update query

Parameter string values are dynamically generated update values which are then concatenated with the Local Variable String Query and creates a query like
UPDATE xyz SET ecode=@ecode,name=@name ..... and so on

getting this error Update Command requires a Valid InsertCommand when passed a DataRow, well I am updating the rows then why asking for the insert command please help

Thank you

Show more