I've got a SQLite db set up as follows:
create table processes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name varchar,
source varchar,
destination varchar,
copy bool,
copy_folder varchar,
delete_days int,
created datetime,
modified datetime
);
I have a DataSet (dsProcesses), BindingSource (ProcessesBindingSource), and a TableAdapter (ProcessesTableAdapter). When I try to edit a row and write the data back to the database using this code (VB.NET):
Me.ProcessesBindingSource.EndEdit()
Me.ProcessesTableAdapter.Update(Me.DsProcesses)
I get the following error:
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.
Any ideas on why it won't write the changes back to the database?
Thanks,
Dustin