You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it seems like if a column is defined in my POCO that doesn't exist in the excel file it fills it with default values, is there anyway to have it throw an error saying that the column is missing instead?
E.g
public class ExcelAttributeDemo
{
[MiniExcelColumnName("Column1")]
public string Test1 { get; set; }
[MiniExcelColumnName("Column2")]
public string Test2 { get; set; }
}
Current Test2 would be set to an empty string, would like to throw an error with something like: Column2 missing from the file
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently it seems like if a column is defined in my POCO that doesn't exist in the excel file it fills it with default values, is there anyway to have it throw an error saying that the column is missing instead?
E.g
Current Test2 would be set to an empty string, would like to throw an error with something like:
Column2 missing from the fileBeta Was this translation helpful? Give feedback.
All reactions