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