List of entities from PersistenceInfoProvider

Posts   
 
    
Froid
User
Posts: 1
Joined: 05-Sep-2007
# Posted on: 05-Sep-2007 09:55:30   

Hi guys,

I'm in adapter land.

I need to be able to iterate over tables in a database. Since LLBLGen has generated the code, it knows which tables are in our base. Is there a way to get a list of EntityBase2 or something?

I've looked at 'PersistenceInfoProvider' which knows about the tables, but it's internal etc.

Is this info available somehow or do i have to maybe alter the templates a bit to have 'PersistenceInfoProvider' gvie me that info?

Thanks for a nice product btw wink

/Frederic Gos

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 05-Sep-2007 10:10:30   

Are you after a list of table names or a list of entities? In the DBGeneric project there is a file called ConstantEnums.cs which contain an EntityType Enum (under the root NameSpace of your project).