Using custom templates with VS

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
LordFjord
Posts: 18
Joined: Thu 22 Apr 2010 07:55

Using custom templates with VS

Post by LordFjord » Thu 12 Aug 2010 12:33

Hello,
i have made a custom template to my Entity Developer project and with the tool it is working file. However, in Visual Studio 2010, the DevartLinqToSqlGenerator still uses the default template file.

I have stored the template file in the same directory as the lqml file.

What did I do wrong? I would like to use the custom template together with Visual Studio.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Fri 13 Aug 2010 17:02

Please check that your custom template is specified in the Template model property. For details, please refer to the corresponding walkthrough in the Entity Developer documentation:
Common Concepts -> Working with Templates -> Creating and Editing Templates

The documentation can be downloaded as a single .chm file here:
http://www.devart.com/entitydeveloper/e ... eloper.chm

Feel free to contact us if you encounter any problems with this.

LordFjord
Posts: 18
Joined: Thu 22 Apr 2010 07:55

Post by LordFjord » Mon 16 Aug 2010 09:15

Im not sure why but it seems to work now. Probably some oversight on my end.

gdcrawford
Posts: 2
Joined: Mon 13 Dec 2010 16:50

Post by gdcrawford » Tue 14 Dec 2010 08:20

I am having the same problem with the custom tool using the default template. I tried to download the help file but cannot see any of the content.

How do you set the model Template name to be my custom template?

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

Post by AndreyR » Tue 14 Dec 2010 10:06

Go to the Tools->Entity Developer->Templates... VS menu option and create a valid template.
Then go to the Model Properties (the simplest way is to double-click the model surface), open the Generation node and choose your template in the drop-down list.
After saving the model code will be generated in accordance with the new template.
If you want to turn off the code generation for the model at all (for example, you have created a custom T4 template that performs all code generation) just clean the Custom Tool property of the Devart LinqConnect (Entity) model project item.

gdcrawford
Posts: 2
Joined: Mon 13 Dec 2010 16:50

Post by gdcrawford » Tue 14 Dec 2010 10:13

Thanks. Works perfectly now.

Post Reply