示例#1
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;
        }
示例#2
0
        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;
        }