title: Entity Framework Code First error
body: <p>Experts,</p>
  
  <p>We're trying to deploy a project to a SQL Server but see a weird error:</p>
  
  <p>"<code>The entity type EEntityInfo is not part of the model for the current context.</code>"</p>
  
  <p>The error is triggered from inserting an entity of the specified type (<code>EEntityInfo</code>) into its collection in the DbContext.</p>
  
  <p>Until deployment we've been running the project on a local SQL Express instance without any hickups. For deployment I tried to just clean up the SQLEXPRESS DB, create a new DB on the production SQL Server and then import the SQLEXPRESS DB (including data) to it.</p>
  
  <p>The new DB is an exact copy as far as I can see but now I get these kinds of errors. Is there some metadata I'm unaware of, and that might have been left out of the import process? (The __MigrationHistory table <em>was</em> included and contains one record, identical to the original.)</p>
  
  <p>Could it be that the access to the production SQL Server is different?</p>
  
  <p>Any hints would be greatly appreciated!</p>
  
  <p>Cheers</p>