vs2012 no information in Disigner when generating models from ADO

Source: Internet
Author: User

Original address: http://blog.sina.com.cn/s/blog_a1b63a730101ezs4.html

I. Description

The DbContext is a simplified package for ObjectContext. The original ObjectContext is too cumbersome in some places, and many advanced features are actually not used.
These are two sets of APIs that are not directly related to DB First,model first or code first.
To generate ObjectContext, first delete the EF. tt file and change the model's code generation strategy to default.

Second, the content

To solve this problem, you have to turn it into a model based on ObjectContext. Just follow the steps below:

1. Open your solid model in the designer (if necessary, click the blank space in the designer to ensure that no objects are selected).

2. In the Properties window, change the code generation policy from none to the default .

3. Delete the two . TT files. This assumes that you have not modified these files since you created the entity model. If you have modified them, then these changes will be lost.

4. Rebuild the project.

Now, the problem is solved.

vs2012 no information in Disigner when generating models from ADO

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.