VS2012 The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced.
Visual Studio 2010'da çalışan entity modeliniz 2012'de The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework Version=5.0.0.0" hatası mı veriyor?
- Entity Modelinize çift tıklayarak designer kısmını açın
- Designer'de boş bir yere sağ tıklayarak "Properties" tıklayın.

- Properties penceresindeki "Code Generation Strategy" özelliğini "Default" olarak değiştirin.
- Ardından Solution Explorer'daki Modelinizin altinda ".tt" uzantılı dosyaları silin.
- Daha sonra Solution Explorer'ınızı "Build" edin ve projenizi çalıştırın. Sorununuz çözülmüş olacaktır..
Kolay gelsin.