How to determine an EntityFields underlying database info

Posts   
 
    
Posts: 497
Joined: 08-Apr-2004
# Posted on: 05-Nov-2008 15:10:22   

Hi all,

Is it possible to get the underlying database info for an entity's fields. We're trying to write some code that will create an ado recordset (ugh!) with the same fields and correct types that are defined for the entity.

So far we've been looking at the collection of fields for an entity using the entity.Fields collection, but that gives us an EntityField2, which doesn't seem to contain any of the underlying database info, for example the database type and defined size.

Is this possible?

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 05-Nov-2008 15:39:34   

In Adapter, the info is not stored in the entityField but rather in FieldPersistenceInfo class.

Please check the following thread to know how to get the FieldPersistenceInfo object of an EntityField2 http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=12530

Posts: 497
Joined: 08-Apr-2004
# Posted on: 05-Nov-2008 16:07:16   

Thanks for that, thats exactly what we were looking for simple_smile