Query the code generated

Posts   
 
    
timt
User
Posts: 14
Joined: 13-Nov-2006
# Posted on: 24-Feb-2008 13:39:43   

Hi

Is there a way of programaticaly querying the code generated to work out what entities have been created, their fields, metadata etc as I would like to autogenerate aspx pages with detailsview,formview controls etc based on what it finds (in a similar way you can query sql server objects directly). I dont really want to use reflection if there is a mechanism built in.

Thanks Tim

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Feb-2008 19:58:47   

Hi Tim,

I don't understand you 100%, but the LLBLGen framework + your code generated is mostly all you need to know about what you are trying to do. However, Why don't use a template approach in your case? Have you check out the LLBLGen ASP.Net 2.0 GUI Templates (Download section)?

David Elizondo | LLBLGen Support Team
timt
User
Posts: 14
Joined: 13-Nov-2006
# Posted on: 25-Feb-2008 08:58:33   

Hi

I want to be able iterate through the project, and access the Entities created and their fields so that I can autogenerate some code and build pages within Visual Studio. Looking at the ApplicationCore object I can see the project object which seems to do want I want.

Cheers Tim

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 25-Feb-2008 10:44:18   

You should either use a plug-In to the Designer and use the LLBLGen Pro SDK to get the information that you need. Or use a Template to generate the UI pages in the process of code generations. As David said a good place to start is to examine the ASP.Net 2.0 GUI Templates.