Ignoring and renaming fields for a dynamic csv file read #2167
Unanswered
merlinschumacher
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a CSV file where the columns may vary depending on the environment, so I use
GetRecords<dynamic>
. I just need to read it.Furthermore, I need to be able to rename some of the columns and ignore others. Which ones need to be renamed or be ignored needs to be configurable as well.
I've yet found no way to make either possible using Maps. At the moment, I'm walking through the entire data set yielded by CSVHelper and remove all columns and rename the offending ones.
Any tips would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions