title: Entity Framework Code First Doesn't Generate Database
body: <p>I created a db Context class and added a connection string in my web.config file as instructed in Scott Guthrie's <a href="http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx">Code First Development with Entity Framework 4</a>.  I am running it from a test method.  I received several database errors running the tests, but when I finally cleaned up the classes so the test succeeded, I still had no database in the App_data folder.</p>
  
  <p>I added Database.CreateIfNotExists() to the dbContext constructor, but still no sdf file.  Anyone know what I am doing wrong?</p>