EF 4.1 Code First error - The entity type SomeType is not part of the model for the current context
code-first, entity-framework, entity-framework-4.1
Solution
It may occur because:
- DbContext configured with an incorrect connection string
- The entity specified is actually not mapped in configuration
Problem
While working with EF code first I get error given below at different times: The entity type SomeType is not part of the model for the current context. What are the possible causes of this error?