I have datagrid and a button in my wpf window. I' d like to update my database after user make changes in datagrid.
But instead of update I'm getting "the UpdateCommand affected 0 of the expected 1 records." error.
If i comment a line number 19 I get a "Update requires a valid...