1. When you upgrade from EF 5 to EF6 then you might need to delete tt file for example in the followjng video is Model.tt. Right click edmx page then select Add Code Generation item… then choose EF 6.x DbContext Generator.
2. Using db.Database.Log = s => Debug.Write(s); to display the SQL statement generated by EF in Output Window.
For more information: http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Entity-Framework-5-and-6