title: Entity Framework 4.1 The model backing the context has changed since the database was created, immediately after creating DB
body: <p>I am working on a project which uses Entity Framework 4.1 for persisting our various objects to the database (code first).</p>
  
  <p>I am testing in Visual Studio with a local SQL Express DB, and our Jenkins server deploys committed code to a testing server. When this happens I temporarily change my local connection string to point to the testing DB server and run a unit test to re-create the test database so that it matches our latest entities, etc.</p>
  
  <p>I've recently noticed our testing server is giving this error:</p>
  
  <p><strong>The model backing the 'EntityFrameworkUnitOfWork' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the DropCreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data.</strong></p>
  
  <p>This is usually an indication that our code has changed and I need to run the unit test to re-create the database. Except I just did that! I don't believe there is anything wrong with our deployment process - the DLLs on the test server seem to be the same versions as in my local environment. Are there any other settings or environment factors that can cause this error about the model having changed since the database was created?</p>
  
  <p>I'm new here - thanks for any help!</p>