Answered by:
VisualStudio 2012 RC + EF 5.0 RC: EntityObject Generator ?! WHERE ?

Question
-
Hi Folks,
I try to migrate a project from 2010 EF 4.3.1 (modified EntityObject generator template) up to vs 2012 rc, ef 5.0 rc and .Net 45 rc.
Painfully, my old T4 template doesnt work any longer. Where can I get the correct template to migrate it to EF 5.0 ?
I can compile the old project, but after starting the app I receive an exception with "different scheme detected".
Any hints ?
Greetings,
ChrisFriday, June 1, 2012 2:23 PM
Answers
-
Sorry for the long wait on these ones. The templates are now available on Visual Studio Gallery. See this page for details - http://msdn.microsoft.com/en-US/data/JJ613116#EntityObject
~Rowan
We are seeing a lot of great Entity Framework questions (and answers) from the community on Stack Overflow. As a result, our team is going to spend more time reading and answering questions posted on Stack Overflow. We would encourage you to post questions on Stack Overflow using the entity-framework tag. We will also continue to monitor the Entity Framework forum.
- Marked as answer by Rowan Miller Monday, September 10, 2012 11:22 PM
Monday, September 10, 2012 11:22 PM
All replies
-
Hi Chris,
I as facing the same problem, but after a few search I found the correct templates:
http://visualstudiogallery.msdn.microsoft.com/da740968-02f9-42a9-9ee4-1a9a06d896a2
http://visualstudiogallery.msdn.microsoft.com/875c882d-333e-455a-8dae-5353510527dd?SRC=VSIDE
(for vb)
You can also are more templates on visual studio gallery:
Hope this can help you!
Happy we
Alberto
- Edited by Piggy Friday, June 1, 2012 6:02 PM
Friday, June 1, 2012 6:01 PM -
Hi Alberto,
thanks for the link. I tried these templates before (you can get them using NuGet). Unfortunately, none of these supports EntityObject as BaseClass. Curious, on the picture straight to the right on the page you referenced you can see an entry "ADO.NET EntityObject Generator V5.0" ...
Greetings,
ChrisFriday, June 1, 2012 8:04 PM -
Hi Chris,
I was playing around it just yesterday to see the new VS 2012 features and succeeded in creating a sample project from scratch very quickly.
I hope I will help you by typing below everything I did yesterday...
To set a starting point you can try to create a new project (from scratch) downloading the new templates (with NuGet remember to select the "Include Prerelease" option to get the correct 5.x generators) and checking if it runs.
As for the migration\upgrade of the existing project I would try to:
1. (backup and) delete from the project the DBContext .tt files (both the files) - but leaving unchanged the edmx model
2. repeating the templates creation procedure by right clicking on the edmx model design surface and selecting "add code generation item..." you will be prompted to select the generator (and will choose the EF 5.x DbContext Generator you previously downloaded and installed). Probably, the class initialization methods change from 4.x to 5.x versions, therefore rebuilding them could help.
Using the vb version I had some trouble using the "System.Data.Entity.DbExtensions" because System.Data.Entity was not automatically set to be imported at project level. So, I think you may need to check the project references.
Since I love database optimizations and I only use the Database First approach, so, if you are using Code First, you may need to change something in your classes (but I cannot help you about that).
Yesterday I downloaded and installed the DbContext generators before doing the "add code generation item..." operation and then restarted the VS (to be sure).
There are 4 main templates to be downloaded: 2 for c# (windows and web) and 2 for vb (windows and web).
HTH
Should you need further info, let me know
Have a nice day
Alberto
- Proposed as answer by Allen_MSDN Monday, June 4, 2012 7:45 AM
Saturday, June 2, 2012 5:00 AM -
Alberto, Chris is having issues with the EntityObject Generator, not the DbContext Generator.
Chris, same problem here, no EntityObject Generator v5.0, only DbContext from the extension gallery. Did you come across a solution yet?
The EntityObject code generation template was working fine in the VS 11 Beta on a "clean" machine, so I would imagine it's an upgrade issue/conflict, possibly related to having EF 4.2 June 2011 CTP installed prior (despite uninstalling).
- VS 2012 Repair - did not fix the problem
- VS 2010/2012 RC Uninstall/Reinstall - did not fix the problem
- VS 2012 RC install on a clean machine - at this point I think I'm just going to hit up StackOverflow
Microsoft Moderator, any help here? I wonder if they are planning on moving this template to the extension gallery as well, removed it from VS, and haven't deployed the extension yet?
StackOverflow link: http://stackoverflow.com/questions/10914894/entity-framework-5-0-entityobject-generator-not-available-in-visual-studio-2012
- Paul
- Edited by Paul Marvin Wednesday, June 6, 2012 1:11 PM
Tuesday, June 5, 2012 6:30 PM -
We are working on publishing templates for EntityObject 5.x and Self Tracking Entities 5.x on Visual Studio Gallery. I will let you guys know when they are available (will respond to this thread again).
Thanks,
Maurycy
This posting is provided "AS IS" with no warranties, and confers no rights.
- Proposed as answer by Paul Marvin Thursday, June 7, 2012 1:26 PM
- Marked as answer by Allen_MSDN Sunday, June 10, 2012 8:40 AM
- Unmarked as answer by Rowan Miller Monday, September 10, 2012 11:22 PM
Wednesday, June 6, 2012 9:41 PM -
Two weeks passed since this question was first raised. Any update on this? I've been waiting for this temlate to continue my work.Thursday, June 21, 2012 2:27 AM
-
Same here, I have a big project and really need this update, is there a ETA?Saturday, June 30, 2012 1:22 PM
-
...and another two weeks go by without an answer. An ETA is highly appreciated.
CT
Thursday, July 12, 2012 10:47 AM -
Hi guys,
sorry for being late with my experiences. But it took me some time ...
Currently, I'm still using the "old" templates for generation. The problem has been caused somewhere else. In my project I use two different data providers, Sqlserver compact for local use and SQL-Server for the server based approach. I had to re-generate everything from my EDMX file twice. Once for the compact version and once for the server based version.
After that, everything runs fine without any problems.
So, I anybody of you has a "static link" in the project environment to the generated ssdl file will fail at runtime. Be careful !
Best regards,
ChrisWednesday, July 18, 2012 10:47 AM -
Now that Visual Studio 2012 RTM will be available on 8/15, what is the status of this issue? Has it been fixed? Microsoft moderator, can you share some information on this? I can't believe this problem can't be fixed in 2 months. What the EF team has been doing in the whole summer? Camping?Thursday, August 2, 2012 12:53 AM
-
Any Update on self-tracking entity generator.?
I am using Visual Studio 2012 RC.
Wednesday, August 15, 2012 7:41 AM -
We are working on publishing templates for EntityObject 5.x and Self Tracking Entities 5.x on Visual Studio Gallery. I will let you guys know when they are available (will respond to this thread again).
Thanks,
Maurycy
This posting is provided "AS IS" with no warranties, and confers no rights.
Would love an update on this as we cannot upgrade to the next version of EF without it and we would really like to move forward for the performance improvements that have been made.
Wednesday, August 15, 2012 5:02 PM -
FYI for those that are waiting on this, I received this response from the EF team:
"We're just sorting out the license for the STE templates. We expect to have them up later this week."
Thursday, August 16, 2012 3:34 PM -
- Proposed as answer by Mark Shiffer Friday, August 17, 2012 12:45 PM
Friday, August 17, 2012 12:45 PM -
We are working on publishing templates for EntityObject 5.x and Self Tracking Entities 5.x on Visual Studio Gallery. I will let you guys know when they are available (will respond to this thread again).
Thanks,
Maurycy
This posting is provided "AS IS" with no warranties, and confers no rights.
Friday, September 7, 2012 7:52 PM -
Sorry for the long wait on these ones. The templates are now available on Visual Studio Gallery. See this page for details - http://msdn.microsoft.com/en-US/data/JJ613116#EntityObject
~Rowan
We are seeing a lot of great Entity Framework questions (and answers) from the community on Stack Overflow. As a result, our team is going to spend more time reading and answering questions posted on Stack Overflow. We would encourage you to post questions on Stack Overflow using the entity-framework tag. We will also continue to monitor the Entity Framework forum.
- Marked as answer by Rowan Miller Monday, September 10, 2012 11:22 PM
Monday, September 10, 2012 11:22 PM