public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
        {
            var factory    = new Db2DbFactory();
            var connection = factory.CreateConnection(connectionString);

            return(new Db2Processor(connection, new Db2Generator(), announcer, options, factory));
        }
 public void SetUp()
 {
     Factory = new Db2DbFactory();
     Connection = Factory.CreateConnection(IntegrationTestOptions.Db2.ConnectionString);
     Quoter = new Db2Quoter();
     Processor = new Db2Processor(Connection, new Db2Generator(), new TextWriterAnnouncer(System.Console.Out), new ProcessorOptions(), Factory);
     Connection.Open();
 }
Example #3
0
        public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
        {
            var factory          = new Db2DbFactory(_serviceProvider);
            var connection       = factory.CreateConnection(connectionString);
            var generatorOptions = new OptionsWrapper <GeneratorOptions>(new GeneratorOptions());

            return(new Db2Processor(connection, new Db2Generator(new Db2Quoter(), generatorOptions), announcer, options, factory));
        }
 public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
 {
     var factory = new Db2DbFactory();
     var connection = (DbConnection)factory.CreateConnection(connectionString);
     return new Db2Processor(connection, new Db2Generator(), announcer, options, factory);
 }