Getting Table & Field Name from FieldIndex

Posts   
 
    
Posts: 134
Joined: 04-Mar-2005
# Posted on: 23-Jun-2005 14:37:31   

Using Adapter I can't work out how to get the underlying table name and field name from a fieldindex. I see how to create a EntityField2 from a FieldIndex but then I can't seem to get anywhere from there.

Has anyone tried this?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 23-Jun-2005 15:43:54   

ChicagoKiwi wrote:

Using Adapter I can't work out how to get the underlying table name and field name from a fieldindex. I see how to create a EntityField2 from a FieldIndex but then I can't seem to get anywhere from there.

Has anyone tried this?

Create a derived class from the DataAccessAdapter. To that class add a method which accepts an entity name (like "CustomerEntity") and the field index as int.

Then, call GetFieldPersistenceInfos(entityname) and return the FieldPersistenceInfo object at the index specified simple_smile

Frans Bouma | Lead developer LLBLGen Pro