Reputation: 265
I found out today about the existance of this feature in VS 2010 C# and I didn't really find out pretty much googling it. Actually, I have the following questions:
Upvotes: 0
Views: 3629
Reputation: 3369
You could use LocalDb.
Your data won't be erased when you close your application.
In order to add/delete/retrieve content to your localDb, have a look to Entity Framework.
Upvotes: 2
Reputation: 1737
If you are refering to the SQL Express instance of a database you can create in Visual Studio, then the answer is the data is stored until you delete it (same as any other database) and persists across closing the application you create and VS being closed down.
You can think of it as a portalable database that you can take with your project until it's ready to be released into the wild. :)
Upvotes: 2