I have a a sql database in my app_data folder and my connection string looks like this:
Server=.\SQLExpress;AttachDbFilename=|DataDirectory|wikipediamaze.mdf; Trusted_Connection=Yes;
I'm using Fluent Nhibernate, and everything is mapped properly. I'm able to connect to the database fine and even update and insert rows with no problem.
My issue is that once I stop debugging, none of my data is there. I've checked to see if perhaps my database was being put in the bin folder and a new instance was being created for every time I ran the app, but this is not the case.
Does anyone have any other suggestions? I've spent 2 nights now trying to figure this out.
Thanks!