How to configure skip record in CsvHelper.Configuration if all non-optional fields are empty #1882
Unanswered
DreamThemeGH
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't see a good way of doing this. The |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
For a long time now I have not been able to find a solution to how to configure skipping of rows if all required (not optional) columns are empty.
Help me please. I don't know how to get the option flag for a column in a RAW array of fields to check if they are all empty. It is difficult to do this when the order of the columns can be changed and mapping by name is used.
If there is a bool flag for skipping lines, if all non-optional fields are empty, then this would be enough for my case.
Examples and details on the forum
Beta Was this translation helpful? Give feedback.
All reactions