Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialkevin hudson
Courses Plus Student 11,987 PointsWhere is the database?
I looked through the SQL explorer and do not see a database for this project. SO I am assuming that Data is generated in memory and deleted when refreshed or something like that. I've been though Entity framework and MVC and I guess I'm not getting it why I don't see tables with data stored.
4 Answers
richardking4
2,997 PointsThere's no database for this project! Take a look inside the "Data.cs" file under the "Data" folder. You'll find the following comment at the very top:
"Note: The code in this class is not to be considered a "best practice" example of how to do data persistence, but rather as workaround for not having a database to persist data to."
kevin hudson
Courses Plus Student 11,987 PointsI'm really lost here I need an explanation to completely understand.
Fabian Pijpers
Courses Plus Student 41,372 PointsYou May have to Search Manually Within VS Explorer through the menu and add it Manually to the project. That is as far as in can Remember. It has been a while sinds ik last Touched used VS.
Fabian Pijpers
Courses Plus Student 41,372 PointsGo to Microsoft developer site and see how you manually can add the database. May your solution explorer does not see the database directly.
Fabian Pijpers
Courses Plus Student 41,372 PointsFabian Pijpers
Courses Plus Student 41,372 PointsYou might have to manually add the database either through menu file->add and so on or right click and add-> database As least that is for as far as i remember visual studio.