Posted on: 6/1/2011 3:41:06 PM | Views : 530

Hi,
I am creating a web application using MVC 3 with C#. I am following the Nerd Dinners tut (http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx) and am having problems with the database section. The tut says that if you have model classes defining the database and a DbContext class and you name the connection string the same name as your DbContext class, then a database scheme should be generated when you run the program.
I have followed all the code exactly, but the database does not generate. What could be the problem? I recently installed SQL Server Compact 4 to stay in line with the tut, and maybe that didn't work properly?
This is my connection string:

<connectionStrings> <add name=Go to the complete details ...