Last post Jul 17, 2012 01:03 PM by AukI
Jun 01, 2012 10:41 AM|tbertenshaw|LINK
the entity diagram code generation item option appears to not work in vs2012 . if i create a new project and add a entity data model,
with some tables from my database, then compile my project. When i then right click on the entity diagram and select codegeneration item the dialog which opens asks to choose a project type and no items are selectable, if i choose online and select the ef5.x
dbcontext generator for c# nothing appears to happen after adding, i cannot see any new items added to the solution.
this does work in vs2010. with mvc4rc and using ef5.
Jun 20, 2012 11:53 AM|ajcvickers|LINK
I can't reproduce this issue with the VS 2012 RC. After adding the DbContext templates I see a MyModel.Context.tt and a MyModel.tt file added to my project where MyModel is the name I used.
If you right click on the designer surface and select properties what do you see for "Code Generation Strategy"? Is it None or Default?
Jul 17, 2012 01:03 PM|AukI|LINK
If you want to use database first then you can use my drawn approach to go thorough.
Here is the link for database first approach: