EF4 Poco entities with T4 template

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
skoub
Posts: 32
Joined: Fri 21 May 2010 15:47

EF4 Poco entities with T4 template

Post by skoub » Fri 21 May 2010 17:30

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

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 25 May 2010 14:15

Could you please try the workaround I have suggested here?

skoub
Posts: 32
Joined: Fri 21 May 2010 15:47

Post by skoub » Thu 27 May 2010 14:45

it seems to have solved the problem!

thank you

bhav27
Posts: 20
Joined: Tue 20 Apr 2010 11:53

Post by bhav27 » Wed 04 Aug 2010 11:15

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?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 04 Aug 2010 15:40

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).

Post Reply