Page 1 of 1

EF4 Poco entities with T4 template

Posted: Fri 21 May 2010 17:30
by skoub
hi!

i would like to generate poco classes with T4 template provided with EF4 on my EDML file.

With the EDMX, everything is ok but with EDML, i change the file to load in the T4 script and point to the right model.edml file but it doesnt generate anything. Well, i have a file but it is empty.

since that the edml is an edmx file, why the T4 template doesnt work when i use the devArt Entity Model?

alex

Posted: Tue 25 May 2010 14:15
by AndreyR
Could you please try the workaround I have suggested here?

Posted: Thu 27 May 2010 14:45
by skoub
it seems to have solved the problem!

thank you

Posted: Wed 04 Aug 2010 11:15
by bhav27
AndreyR wrote:Could you please try the workaround I have suggested here?
I updated the .tt file as said. How do I generate POCO classes from model.edml?

Posted: Wed 04 Aug 2010 15:40
by AndreyR
Take a look at this tutorial.
Please make sure that you have made actions required in our workaround for the necessary project language (C# or Visual Basic).