There is a problem when you use try to read raw data fields using the form
public class MyDataRow : List<DataRowItem>, IDataRow
{
}
Then using the code:
IEnumerable<MyDataRow> products = cc.Read<MyDataRow>("products.csv", inputFileDescription);
The List gets populated with the corresponding rows from the txt file but the columns (DataRowItem object) are empty.
I used the debugger to follow the execution into the ReadData class. All the values are retrieved as expected and you can inspect them before they get yield returned. After this point they get lost
There is a problem when you use try to read raw data fields using the form
Then using the code:
IEnumerable<MyDataRow> products = cc.Read<MyDataRow>("products.csv", inputFileDescription);The List gets populated with the corresponding rows from the txt file but the columns (DataRowItem object) are empty.
I used the debugger to follow the execution into the ReadData class. All the values are retrieved as expected and you can inspect them before they get yield returned. After this point they get lost