Question

I've created a new web application in Visual Studio 2013. I removed the connection string from the web config and ran the application. I was able to register and login on local host. There is no mdf in the App_Data folder. I turned on "show All Files".

Where is the database?

Was it helpful?

Solution

Entity Framework 6 uses LocalDB by default.

It stores your database under you user's folder with the name of your DbContext so

C:\Users\user-name\yourcontextname.mdf

You can read more about how the files are stored and how to access LocalDB from the SSMS from this article: LocalDB: Where is My Database?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top