C# Class nDump.Import.CsvDataImporter

Afficher le fichier Open project: SteveMoyer/nDump Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

CsvDataImporter() public méthode

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

DeleteDataFromAllDestinationTables() public méthode

public DeleteDataFromAllDestinationTables ( List sqlTableSelects ) : void
sqlTableSelects List
Résultat void

InsertDataFromSqlFiles() public méthode

public InsertDataFromSqlFiles ( List dataSelects ) : void
dataSelects List
Résultat void

InsertDataIntoDestinationTables() public méthode

public InsertDataIntoDestinationTables ( List tablesToProcess ) : void
tablesToProcess List
Résultat void

RemoveDataAndImportFromSqlFiles() public méthode

public RemoveDataAndImportFromSqlFiles ( List dataSelects ) : void
dataSelects List
Résultat void

RemoveDataFromSqlFiles() public méthode

public RemoveDataFromSqlFiles ( List dataSelects ) : void
dataSelects List
Résultat void