Otis wrote:
You can grab the Fields from the first object in the collection:
IEntityFields fields = myCustomers[0].Fields;
as every entity has a collection of these.
Use these to create a column set. You then can walk through the objects and per object through their fields by looping through myEntity.Fields.
However I think it's often more efficient to simply refetch the data in a datatable, use the method GetMultiAsDataTable() which is a static (shared) method of every entity collection.
Well, as you may have read in my other posts, the problem is that I need to be able to work with the data before I get it to the datatable. I could, of course, get the datatable and work directly on that, but it's so much more convenient to use the entity and collection objects from llblgen.
I'll see if I can use your suggestion to get the function working, then I'll post it here in case anyone else needs it.