I load data from sdf database in winforms App. I use full path to the database file . Example :
conn = new SqlCeConnection { ConnectionString =\"Data Sou
I did this in the web.config file. I added to Sobhan's answer, thanks btw.
Where "db" becomes my database directory instead of "App_Data" directory.
And opened normally with:
var db = Database.Open("listdb");