Page 1 of 1

Using custom templates with VS

Posted: Thu 12 Aug 2010 12:33
by LordFjord
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.

Posted: Fri 13 Aug 2010 17:02
by StanislavK
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: ... eloper.chm

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

Posted: Mon 16 Aug 2010 09:15
by LordFjord
Im not sure why but it seems to work now. Probably some oversight on my end.

Posted: Tue 14 Dec 2010 08:20
by gdcrawford
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?

Posted: Tue 14 Dec 2010 10:06
by AndreyR
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.

Posted: Tue 14 Dec 2010 10:13
by gdcrawford
Thanks. Works perfectly now.