title: Entity Framework 4 Code First - Prevent DB Drop/Create
body: <p>I've written an ASP.Net MVC 3 application using the Code First paradigm whereby when I make a change to the model the Entity Framework automatically attempts to re-create the underlying SQL Server Database via DROP and CREATE statements.  The problem is the application is hosted on a 3rd party remote server which limits the number of databases I can have and does not seem to allow me to programmatically execute "CREATE DATABASE..." statements as I gather from this error message:</p>
  
  <blockquote>
    <p>CREATE DATABASE permission denied in database 'master'.</p>
  </blockquote>
  
  <p><strong>Is there any way to stop the Entity Framework from dropping and attempting to re-create the whole database and instead make it simply drop the tables and re-create them?</strong></p>
  
  <p>After creating the database manually and running the application I also get the following error I guess as the Entity Framework tries to modify the database:</p>
  
  <blockquote>
    <p>Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.</p>
  </blockquote>