Experts,
We're trying to deploy a project to a SQL Server but see a weird error:
"The entity type EEntityInfo is not part of the model for the current context."
The error is triggered from inserting an entity of the specified type (EEntityInfo) into its collection in the DbContext.
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.
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 was included and contains one record, identical to the original.)
Could it be that the access to the production SQL Server is different?
Any hints would be greatly appreciated!
Cheers