سؤال

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?

هل كانت مفيدة؟

المحلول

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?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top