excel-mapper
excel-mapper copied to clipboard
Matching from different variants of the column name
is there a way to match if a column in my excel file can have different names when the name is not hardcoded but can be one of the listed ones. my file excel headers column1 | column2 id or partner_id or client_id | client_fio or partner_fio or fio
want something like this
Map(person=> person.PartnerId) .WithColumnNames(new[] { "id ", "partner_id", "client_id"});