Ejemplo n.º 1
0
        private static IAsyncDataService CreateAsyncOleDbDataService(string connectionString)
        {
            //var importProcessor = new OleDbDataImportProcessor();
            var dataReaderProcessor = new AsyncOleDbDataReaderProcessor();
            var metadataProcessor = new OleDbMetadataProcessor();

            var oleDbDataService = new AsyncDataService(connectionString,
                metadataProcessor, null/*importProcessor*/, dataReaderProcessor, null, null);

            return oleDbDataService;
        }
Ejemplo n.º 2
0
        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;
        }