C# Class nDump.Import.CsvDataImporter

Exibir arquivo Open project: SteveMoyer/nDump Class Usage Examples

Public Methods

Method Description
CsvDataImporter ( ILogger logger, QueryExecutor queryExecutor, string csvDirectory, char delimiter ) : System
DeleteDataFromAllDestinationTables ( List sqlTableSelects ) : void
InsertDataFromSqlFiles ( List dataSelects ) : void
InsertDataIntoDestinationTables ( List tablesToProcess ) : void
RemoveDataAndImportFromSqlFiles ( List dataSelects ) : void
RemoveDataFromSqlFiles ( List dataSelects ) : void

Private Methods

Method Description
GetDataTableWithColumnDataTypesSet ( CsvReader csvReader, string tableName ) : DataTable
LoadData ( CsvReader csvReader, string tableName ) : DataTable
ThrowExceptionIfInvalidDataPlan ( IEnumerable tables ) : void

Method Details

CsvDataImporter() public method

public CsvDataImporter ( ILogger logger, QueryExecutor queryExecutor, string csvDirectory, char delimiter ) : System
logger ILogger
queryExecutor nDump.SqlServer.QueryExecutor
csvDirectory string
delimiter char
return System

DeleteDataFromAllDestinationTables() public method

public DeleteDataFromAllDestinationTables ( List sqlTableSelects ) : void
sqlTableSelects List
return void

InsertDataFromSqlFiles() public method

public InsertDataFromSqlFiles ( List dataSelects ) : void
dataSelects List
return void

InsertDataIntoDestinationTables() public method

public InsertDataIntoDestinationTables ( List tablesToProcess ) : void
tablesToProcess List
return void

RemoveDataAndImportFromSqlFiles() public method

public RemoveDataAndImportFromSqlFiles ( List dataSelects ) : void
dataSelects List
return void

RemoveDataFromSqlFiles() public method

public RemoveDataFromSqlFiles ( List dataSelects ) : void
dataSelects List
return void