Reputation: 592
I am trying to update my SQL Server CE database after commiting changes to a typed dataset. The changes are all in the table but won't update to the database. Thank you in advance!
static MoviesTableAdapter adapter;
static MovieDataSet dataset;
static MovieDataSet.MoviesDataTable table;
adapter = new MoviesTableAdapter();
dataset = new MovieDataSet();
table = adapter.GetData();
MovieDataSet.MoviesRow row = table.NewMoviesRow();
row.example = example....
table.AddMoviesRow(row);
adapter.Update(table);
Upvotes: 0
Views: 943
Reputation: 915
This happens a lot with SQL Server CE, or Access, or any other file based database. You have a copy of the database on the solution folder, and it's copied to /bin/debug everytime you run your solution: that's the version you gotta check to see if your changes are persisted.
Upvotes: 3