Retrieve original table name from entity name

Posts   
 
    
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 10-Apr-2006 07:55:16   

I want to retrieve the original table name the entity mapped with from an entity instance. For example, a "Customer" entity is mapped to a table named "cust", I want to get back the table name "cust" from a Customer entity. Any methods I can do so?

Thank you very much!!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 10-Apr-2006 08:26:57   

adapter or selfservicing?

Frans Bouma | Lead developer LLBLGen Pro
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 10-Apr-2006 09:10:48   

adapter

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 10-Apr-2006 09:22:51   

Derive a class from DataAccessAdapter and add a method which calls the base class' method GetFieldPersistenceInfos(name). The received fieldpersistenceinfo objects contain the name of the table field each field is mapped on (fields[index] corresponds with fieldpersistenceinfoObjects[index]

Frans Bouma | Lead developer LLBLGen Pro