I am creating a Desktop application using Microsoft Visual Studio .NET 2008. I am using a .sdf file as my database. My problem is that when I am making changes to my records (add new, deleted, updated) then the changes reflects only while my application is running. When I restart the application then I am not getting my changes.
I am using the default connection string
string conString = Properties.Settings.Default.DataConnectionString;
SqlCeConnection con = new SqlCeConnection(conString);
con.Open();
The value given by Visual Studio for this database is
Data Source=|DataDirectory|Data.sdf
I don t know what mistake I am doing, but all the queries are executing.