Problem Description: Using VS2010, MVC3, EF6.1.1, and using model first to create the data model, the EDMX file was created. In the edmx file design interface, by clicking the right mouse button, Generate the database from model, can be based on the pre-designed model and relationship, automatically generate the table. Then prepare to select Add Code Generation item to automatically generate the entity class, I want to use DbContext generator template to automatically generate entity classes, the results did not find this template. The reason: The EF 6.x dbcontextgenerator templates is not available for Visual Studio 2010.
So the use of unloading the current EF6.1.1, and then install EF5.0, after installation, and then in preparation for the automatic generation of entity classes, the use of online Template, install ef5.x DbContext Generator for C #, you can.
The EF 6.x Dbcontextgenerator templates is not available for VS2010