Popular Answer

Instead, I asked on the MSDN forums, where I received a reasonable response:

A database won't be created by Entity Framework until the first access. The present section of code inApplication_Start() outlines simply the approach to use while building the database on the initial access.

An instance of the database context must be generated in order to start the construction of the database, andcontext.Database.Initialize(true) has to be used.

67
1/29/2012 10:04:51 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow