Create an empty MVC application, in order to use the Entity Framework's class library, the discovery is not normal reference. For example, Insus.net has explicitly cited System.Data.Entity (highlight code), but the class is not referenced correctly when inheriting dbcontext.
Go to Microsoft MSDN View Material: Http://msdn.microsoft.com/en-us/library/system.data.entity (v=vs.103). aspx
The MVC application created by Insus.net is also the. NET Framework 4.5. Create the first MVC application http://www.cnblogs.com/insus/p/3358560.html. But Insus.net has tried to create an Internet MVC application that can be used to this dbcontext class. In a careful comparison, an application that originally created empty (null) MVC was not referenced to the Entity Framework class library (left), and in the MVC application you created the Internet, it was referencing the Entity Framework Class library (right).
The difference is that we can reference it in an empty MVC application.