ExcelMapper icon indicating copy to clipboard operation
ExcelMapper copied to clipboard

Fetch whole Table

Open bh2302 opened this issue 1 year ago • 1 comments

Hello! Is there actually a way to simply insert the Excel file strictly without specifying a header? Unfortunately, .Fetch() without information doesn't work. I've tried around a bit and haven't found any solution. It would be ideal to be able to specify column 1-n and all data will be read in, regardless of whether it is empty or not!

Is this possible in any way?

I have the problem that my data / objects span several lines... I have to add my own algorithm for this afterwards... Best regards, Alex

bh2302 avatar Feb 02 '24 07:02 bh2302

I'm not sure I understand your use case. If your Excel file doesn't have header rows you can also map via column indexes, see https://github.com/mganss/ExcelMapper?tab=readme-ov-file#map-to-column-indexes

Is that what you were looking for? Otherwise, can you show an example class and possibly attach a sample Excel file?

mganss avatar Feb 02 '24 11:02 mganss