Lookup tables

Posts   
 
    
rboarman
User
Posts: 83
Joined: 01-Feb-2005
# Posted on: 06-May-2010 22:12:38   

Hi Otis and Crew,

This is an old post that describes what I need to accomplish:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=1114&StartAtMessage=0

What is the current way of handling this?

Is there anything in 3.0 that would help?

Thanks,

Rick

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-May-2010 04:11:21   

Hi Rick,

There is a "Enum generator task performer" at LLBLGen Site -> Customer's section -> v2.0 Downloads -> 3rd party you can use for that purpose. It's usable for v2.5 and v2.6. This is the description:

This Taskperformer allows the user to generate a enum code file that is based on the contents of lookup tables in the database. The Taskperformer has been tested with the 6th December release of LLBLGen (ver 2.0.0.0). - Source Code included.

Hope helpful wink

David Elizondo | LLBLGen Support Team
rboarman
User
Posts: 83
Joined: 01-Feb-2005
# Posted on: 07-May-2010 04:36:00   

I found that but it is for SelfServicing only. rage

Thanks,

Rick

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-May-2010 06:15:02   

Even with that, you can use it to generate your enum file. Then you can create your own TypeConverters to assign that enum type to the relevant fields wink

David Elizondo | LLBLGen Support Team
rboarman
User
Posts: 83
Joined: 01-Feb-2005
# Posted on: 07-May-2010 16:31:15   

Is there anything in 3.0 that helps with enums or type tables?

Rick

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-May-2010 03:17:32   

In v3.0 no typeconverters are longer needed for Enums. Now you can use TypeImports. For more information download the beta and read the "Enums for type shortcuts and TypeImports files" section in the manual. This resolves the type mapping problem on LLBLGen project. Now, you have to write your enum types; if you want to automate this, you can write a task performer (like the one discussed above) to pull data from db and write a code file with enums.

David Elizondo | LLBLGen Support Team