//validate excel schema by given json public bool ValidateSchema() { var helper = new ExcelFileContext(Workbook.Path); var sheetPresents = helper.PrepareAndGetSheetsPresent(Workbook.Sheets); var context = new WorkBookSchemaContext(); return(context.ValidateSchema(sheetPresents, Workbook)); }
public BaseDataImporter(string excelFilePath, string excelSchemaPath) { Workbook = WorkBookSchemaContext.GetSchema <T>(excelSchemaPath); Workbook.Path = SaveExcel(excelFilePath); }