문제

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