J
John Dann
Is there a way of adding a derived column to a datareader once the
data reader has been populated or do I need to use a dataset/datatable
for this?
(I need to apply a function to one of the columns in a way that can't
be done within a Select expression and so the only way I can see of
doing this is - in theory at least - to add a column to the dr and
then to populate that added column.)
Presumably if I do add a column to either dr or ds/dt I'll need to
iterate through every row to create the new value. Or is there a way
of applying a function to a column in a single operation?
TIA
JGD
data reader has been populated or do I need to use a dataset/datatable
for this?
(I need to apply a function to one of the columns in a way that can't
be done within a Select expression and so the only way I can see of
doing this is - in theory at least - to add a column to the dr and
then to populate that added column.)
Presumably if I do add a column to either dr or ds/dt I'll need to
iterate through every row to create the new value. Or is there a way
of applying a function to a column in a single operation?
TIA
JGD