Remember generator settings

Posts   
 
    
Posts: 1
Joined: 04-Oct-2005
# Posted on: 04-Oct-2005 20:43:53   

Hi.

I've been using LLBLGen Pro for a few months now and I like it very much. Thank you for creating such a great product.

I have a few suggestions for making it easier to use. I hope you will consider implementing them.

  1. Each time I need to generate code I have to select which generator configuration to use. Could you store the last used generator configuration setting (and possibly also the template setting) in the project file and make them the defaults in the generate dialog?

  2. If the last used generator settings are known then it is possible to add something like an "Unattended Refresh & Generate" option in the catalog context menu (avoiding showing the generate dialog and having to click on the Start generator button). This would be a fast way to generate code after making changes to the database.

Regards, Casper

Drewes
User
Posts: 67
Joined: 18-Aug-2003
# Posted on: 05-Oct-2005 01:43:37   

The options you would like to see are mostly already available, 1: in llblgen, from file menu option select preferences, it allows you to set defaults that will then stay.

2: , check the extra's section of the llblgen site, there you can download the utilities , use the command line refresher/generator.

This should do the job. Let me know if you need more info/help.

erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 05-Oct-2005 03:13:12   

I have another suggestion regarding generator settings. Would it be possible to save multiple generator settings for a given project? Here is the situation. For a given db project, I have settings to generate the following:

Generator config to use: Adapter(vs.net.....) Template to use: c# template for sqlServer Root namespace: gw.app.dal destination folder: /path/dal

but within the same project I also have to generate a set of manager classes for which I use the following settings

Generator config to use: Managers config Template to use: Managers templateset Root namespace: gw.app.dal destination folder: /path/managers

Since I dont generate the db stuff often, I tend to forget the multiple generator settings for a given project. Compound this with different DB's and it get's somewhat confusing at times. So is there a way currently, or in the future that I can save multiple generator config settings for a given project such that I can just select a "named(ie. Generate DAL)" generator and it would populate the correct generator config settings. I could then select (Generate Manager classes) and the appropriate generator settings would be applied.

I hope this makes sense. If not, please let me know.

Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 05-Oct-2005 10:59:06   

So in other words: you want to define a generator cycle setup, give it a name and refer to that name (with different settings, like template set, config, destination folder, rootnamespace etc.) and possibly more than one of these setups for a given project? Good idea, I'll add it for 2.0.

In the meantime: if you want that now, please write a couple of .cmd files and generate the code with the command line generator.

Frans Bouma | Lead developer LLBLGen Pro
erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 05-Oct-2005 14:02:53   

Yep, frans, you got it. It would be helpful. I will take a look at the .cmd option in the short term.