Question: is defined in an assembly that is not referenced entity framework?
Answer: DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework 2. ... You must add a reference to assembly 'EntityFramework, Version=5.0. 0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.