Selfservicing: Entity to Datarow

Posts   
 
    
malepuz
User
Posts: 3
Joined: 23-Mar-2005
# Posted on: 23-Mar-2005 15:52:59   

confused Is there a way to get the datarow from an entity as a DataRow object?

I need it exactly as it was in the table, including table name and all.

I have a Selfservicing Project

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39801
Joined: 17-Aug-2003
# Posted on: 23-Mar-2005 16:03:47   

You can fetch an entity into a datatable, by using the static (shared) method GetMultiAsDataTable() of the entity collection of the entity.

The order of the fields in an entity is also the same as in the table. You can also fetch an entity and add columns to a datatable and read the entity.Fields object from front to back. You can determine the various table information using the entity.Fields[index]. properties, like entity.Fields[index].SourceColumnName for the tablefield name

Frans Bouma | Lead developer LLBLGen Pro