Enumerate available entities

Posts   
 
    
RobIII avatar
RobIII
User
Posts: 1
Joined: 27-Jun-2006
# Posted on: 06-Aug-2007 18:36:12   

Hi!

Feel kinda stupid having to ask this question but I have searched this forum, the documentation and Google up and down and sideways: How can I enumerate all available entityclasses from a project? (Or, in short: get a list/collection of all 'tables')

I am building a treeview in which I need to display all entityclasses and somehow I just cannot find the right method in the right class... I'm sure I missed it or am using the wrong keywords. And I am convinced it is possible.

(BTW: LLBLGen Pro 2.0)

psandler
User
Posts: 540
Joined: 22-Feb-2005
# Posted on: 06-Aug-2007 19:43:04   

There is a generated enumeration called "EntityType" which contains each type of entity in your project.

See my post in this thread for one way to loop through all enum members:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7666

The post is not related directly to what you're trying to do, but the code should get you started at least.

HTH,

Phil