icon

CodeTrigger   Forum

Code Generation For C#, WPF, WCF, SQL SERVER/ORACLE/MYSQL and Visual Studio 2013-2017

HomeGeneral

General Discussion Board - Please post questions, answers, (polite) opinions, and use-cases. Moderators reserve the right to amend the text/subject line or re-categorise the post to better suit the forum configuration if necessary.

Incremental development of codebase Messages in this topic - RSS

migrator
04/12/2017
migrator
Administrator
Posts: 63
migrator
migrator
Administrator
Posts: 63
Hi, Let us say I generate a multi-tier application from database. Over a period of time if I add additional database objects, does the tool support adding new code to existing project? Do I have to re-generate the entire application again? What about customization that are done, will it get overwritten? Also, is it possible to generate a ASP.NET Web API 2.x code base from the database? Is it possible to customize the code generation template? I look forward to your response
0 link
04/12/2017 migrator
Administrator
Posts: 63
migrator
migrator
Administrator
Posts: 63
Hi,
Updating a project is transparent, once you are aware how its supposed to work, each time you want to generate code you only select the NEW/UPDATED entities you want to (RE)generate. That's why it reverts all to unchecked at the start of each session. It doesn't try to remember what you have already generated because it doesn't need to. If you select an entity then its code will be (re)generated. If you don't select it then its code will not be (re) generated.

There are some base classes that are regenerated every time. If you make changes to them or don't want them regenerated, add them to the 'escaped files' list, otherwise you can ignore them and let them get regenerated. In general avoid changing the generated code directly, however if you do, add the file to the 'escaped files list to avoid it being overwritten.
It is not possible to customise the code generation template (ie prior to code generation). There are other template based code generators out there that fulfil that requirement.

For information on how you can customise the CodeTrigger generated code (ie after code generation) see the 'Customization' section of the features page.
edited by migrator on 12/4/2017
0 link