title: An exception occurred while initializing the database
body: <p>I'm doing a code first Entity database</p>
  
  <blockquote>
    <p>{"An exception occurred while initializing the database. See the
    InnerException for details."}</p>
  </blockquote>
  
  <p>It was working fine, but I decided to delete the physical database to see it recreate it, but it just fails every time.</p>
  
  <p>I get the error</p>
  
  <blockquote>
    <p>Cannot attach the file
    'C:\ASP\OdeToFood\OdeToFood\App_Data\OdeToFoodDb.mdf' as database
    'OdeToFoodDb'."}</p>
  </blockquote>
  
  <p>Its code first so I don't understand why its not recreating the database.</p>