コード例 #1
0
        public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
        {
            var factory    = new SybaseAseDbFactory(_serviceProvider);
            var connection = factory.CreateConnection(connectionString);

            return
                (new SybaseAseProcessor(_dbTypes, connection, new SybaseAse2000Generator(new SybaseAse2000Quoter()), announcer, options, factory));
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="generator"></param>
 /// <param name="options"></param>
 /// <param name="connectionStringAccessor"></param>
 /// <param name="factory"></param>
 /// <param name="quoter"></param>
 /// <param name="serviceProvider"></param>
 public SybaseAseProcessor(
     [NotNull] ILogger <SybaseAseProcessor> logger,
     [NotNull] SybaseAse2000Generator generator,
     [NotNull] IOptionsSnapshot <ProcessorOptions> options,
     [NotNull] IConnectionStringAccessor connectionStringAccessor,
     [NotNull] SybaseAseDbFactory factory,
     [NotNull] IQuoter quoter,
     [NotNull] IServiceProvider serviceProvider)
     : base(() => factory.Factory, generator, logger, options?.Value, connectionStringAccessor)
 {
     _serviceProvider = serviceProvider;
     Quoter           = quoter;
 }