public ValidateExcelFile(Excelcol[] columns, Stream data, string fileName, int headerin = 1, int sheets = 1, string resultfileName = "Result", ApplicationDbContext context = null)
 {
     _context            = context ?? new ApplicationDbContext();
     this.columns        = columns;
     this.fileName       = fileName;
     this.resultfileName = resultfileName;
     this.sheets         = sheets;
     this.headerin       = headerin;
     this.wb             = setExcelFile(data);
     hanaValidator       = new HanaValidator();
     personValidator     = new ValidatePerson();
     valid = true;
 }
Ejemplo n.º 2
0
 public ADClass()
 {
     hanaval = new HanaValidator();
 }
 public ValidatePerson(ApplicationDbContext context = null)
 {
     _context      = context ?? new ApplicationDbContext();
     hanaValidator = new HanaValidator(_context);
 }