Runtime Tables

Posts   
 
    
smurrell
User
Posts: 59
Joined: 22-Feb-2007
# Posted on: 06-Nov-2007 17:32:20   

Hello

I have tables which are created at runtime. How would I use LLBLGen to access these tables at runtime? How would I go about doing this? I don't mind passing the table name and field names/data types to an API and building up the table dynamically.

Regards, Simon

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 06-Nov-2007 18:44:10   

Since the tables are created at runtime the generated-code of those tables doesn't get generated until you run the designer generation process, so you won't be able to access those tables from the llbl api until then. So, I can think of a few solutions, like for example you could run the command-line-generator from you code, and later compile it as an specific library containing those classes and load it dynamically, all this from your handled code. Somehow this seems very laborious to me. Unless you really need what I mention before, an easier approach would be send the table parameters (name, filter, fields...) to an stored procedure and call this from the llbl api.

smurrell
User
Posts: 59
Joined: 22-Feb-2007
# Posted on: 06-Nov-2007 20:28:21   

goose wrote:

Since the tables are created at runtime the generated-code of those tables doesn't get generated until you run the designer generation process, so you won't be able to access those tables from the llbl api until then. So, I can think of a few solutions, like for example you could run the command-line-generator from you code, and later compile it as an specific library containing those classes and load it dynamically, all this from your handled code. Somehow this seems very laborious to me. Unless you really need what I mention before, an easier approach would be send the table parameters (name, filter, fields...) to an stored procedure and call this from the llbl api.

Can I not pass the table name to an API class and then populate the fields to EntityFields or something?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 07-Nov-2007 10:37:52   

You can find more details in the following discussion: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=8232