The EF 6.x Dbcontextgenerator templates is not available for VS2010

Source: Internet
Author: User
Tags generator visual studio 2010

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.