-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
背景
在导入excel时,需要动态的决定那些行是真实的有效行数据
例如:当第二列没填值时,这一行为无效数据,输出结果中不应该包含这一行数据
建议
增加参数Func<IRow, bool> customerRowsFilter = null),在处理每行数据时先校验传入的委托,决定是否要加入到输出结果中
public static IEnumerable Load(string excelFile, int startRow = 1, int sheetIndex = 0, ValueConverter valueConverter = null, Func<IRow, bool> customerRowsFilter = null) where T : class, new()