File generation for enums

Posts   
 
    
JayMBauer
User
Posts: 3
Joined: 27-Jul-2005
# Posted on: 27-Jul-2005 14:12:41   

We have a .NET project set up by a contractor who no longer works for our company. In the project, they setup a LookupEnums.cs that contained enumerations for some of the tables in our database. This file is supposed to be automatically generated by llbgen but for some reason it's not happenning...

We are using version "1.0.2004.2 Final" released on April 27th 2005. Is there some configuation setting or step that I am missing....

Thanks,

j

Posts: 112
Joined: 09-Aug-2004
# Posted on: 27-Jul-2005 15:11:13   

Have you looked at the ConstantsEnums.cs file?

JayMBauer
User
Posts: 3
Joined: 27-Jul-2005
# Posted on: 27-Jul-2005 15:22:38   

The ConstantsEnums.cs is being re-generated based on it's timestamp in the header of the file...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 27-Jul-2005 16:05:41   

Are you using the "Lookup table templates plugin" or the "Enum generator task performer" (both from the 3rd party section in the customer area) ?

Automatically generated means that you have to use a generator config which starts the generation of these enums. Do you use a default generator config, like Adapter, full safe? If so, you then don't start the extra task(s). If that's the case, you then have to make a copy of the default generator config and add the task(s) to that which start the enum generator.

Frans Bouma | Lead developer LLBLGen Pro
JayMBauer
User
Posts: 3
Joined: 27-Jul-2005
# Posted on: 27-Jul-2005 16:45:22   

I'm don't think I'm using either the "Lookup table templates plugin" or the "Enum generator task performer". The only plugin listed is "Add Customer Properties Plug-in".

It appears we're using a default generator config, "Adpater scenario (Full /Safe)... "

I assume I should download the "Enum generator task performer". Could you point me to the documentation on how to make a copy of the default generator config and add tasks...

Thanks..

j

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 27-Jul-2005 19:00:14   

I'd go for the plugin, but it;s up to you.

To alter a generator config is easy: - copy the .config file you want to edit, for example <llblgenpro install folder>\task performers\AdapterScenarioFullSafe2003.config, and copy it in the same folder, give it another name - open the copy in a texteditor (it's XML), and alter the <name> tag's contents so you'll recognize it in LLBLGen Pro - add a task to an existing taskgroup, for example by copying an existing one.

The SDK documentation (customer area -> extras section) contains documentation about the structure of these config files and the meaning of the XML tags, for example section "Generator configurations, XML structure".

If you get stuck, please let me know.

Frans Bouma | Lead developer LLBLGen Pro