c# - Database file .sdf does not update after closing application -


i creating desktop application using microsoft visual studio .net 2008. using .sdf file database. problem when making changes records (add new, deleted, updated) changes reflects while application running. when restart application not getting changes.

i using default connection string

string constring = properties.settings.default.dataconnectionstring; sqlceconnection con = new sqlceconnection(constring); con.open(); 

the value given visual studio database is

data source=|datadirectory|\data.sdf

i don't know mistake doing, queries executing.

every time run vs.net, copying sdf file solution bin folder, , overwriting bin/sdf file there last run. change sdf file's properties "copy if newer" instead of "copy always".


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -