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.
Using custom templates with VS
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
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.
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.
-
- Posts: 2
- Joined: Mon 13 Dec 2010 16:50
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.
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.