I believe the functionality they are looking for would be something like:
foreach(string colname in entity.TableColumns) {
Console.WriteLine("Property: {0} Value: {1}", colname, entity[colname].ToString());
}
The cust["Name"] functionality seems be be broken. The generated code is the same as the Error method right above it.
However, there is also another subtle problem - if you have setup the UsePascalCasing to anything but "None", then there isn't any way to find the actual string name of the parameter you want to access. There is a TableColumns list of strings of the table columns, but they might not match the property values (Table column CustID might end up as property CustId).
To correctly implement this functionality, we would need to add another string array to hold the actual Property names, and then correct the indexer to return that Property.
DoniG
-------------------------------------------------
Member of the .NetTiers team
-------------------------------------------------