private static IAsyncDataService CreateAsyncSqlDataService(string connectionString) { var importProcessor = new AsyncSqlDataImportProcessor(); var dataReaderProcessor = new AsyncSqlDataReaderProcessor(); var metadataProcessor = new SqlMetadataProcessor(); var queryProcessor = new AsyncSqlTruncateTableProcessor(); var deleteDataProcessor = new AsyncSqlDeleteDataProcessor(); var sqlDataService = new AsyncDataService(connectionString, metadataProcessor, importProcessor, dataReaderProcessor, queryProcessor, deleteDataProcessor); return sqlDataService; }
private static IDataService CreateSqlDataService(string connectionString) { var importProcessor = new SqlDataImportProcessor(); var dataReaderProcessor = new SqlDataReaderProcessor(); var metadataProcessor = new SqlMetadataProcessor(); var sqlDataService = new DataService(connectionString, metadataProcessor, importProcessor, dataReaderProcessor); return sqlDataService; }