LinqToExcel icon indicating copy to clipboard operation
LinqToExcel copied to clipboard

Possible to map two columns into a single property?

Open jtu100 opened this issue 11 years ago • 1 comments

If have a spreadsheet that contains vectors, stored in two or three columns.

Is there a way to get LinqToExcel to map these two or three columns directly into a property?

Example: Property might be called MyPosition. Columns might be called MyPosition_x, MyPosition_y, MyPosition_z.

jtu100 avatar Feb 12 '14 14:02 jtu100

This would be a very useful addition. I guess it would have to be routed via a transformation so that you have control of how the end mapping should be achieved.

For example, you might want to concatenate three columns but trim off the last 4 chars of the second field. Or you might require a specific deliminator between the fields. You might even not want to concatenate but perhaps just pick the largest number from the columns.

Perhaps some way of accessing the entire row object from a transformation might be possible?

m1dst avatar Sep 01 '14 08:09 m1dst