private void loadMap(string mappingFile) { string json = System.IO.File.ReadAllText(mappingFile); Map = JsonConvert.DeserializeObject<TableMap>(json); }
TableMap getTableMap(string jsonFile) { MapLoader mapLoader = new MapLoader(jsonFile); TableMap tableMap = mapLoader.Map; return tableMap; }
void validate(DataLoader dataLoader, TableMap tableMap) { IValidator val = getValidator(tableMap.Validator); val.Validate(dataLoader.Records, tableMap.UseSoftDelete); val.Save(); }
public CSVWriter(TableMap map) { tableMap = map; header = string.Empty; }