Пример #1
0
        public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
        {
            var factory    = new SqlServerCeDbFactory(_serviceProvider);
            var connection = factory.CreateConnection(connectionString);

            return(new SqlServerCeProcessor(connection, new SqlServerCeGenerator(new SqlServer2000Quoter()), announcer, options, factory));
        }
 public SqlServerCeProcessor(
     [NotNull] SqlServerCeDbFactory factory,
     [NotNull] SqlServerCeGenerator generator,
     [NotNull] ILogger <SqlServerCeProcessor> logger,
     [NotNull] IOptionsSnapshot <ProcessorOptions> options,
     [NotNull] IConnectionStringAccessor connectionStringAccessor,
     [NotNull] IServiceProvider serviceProvider)
     : base(() => factory.Factory, generator, logger, options.Value, connectionStringAccessor)
 {
     _serviceProvider = serviceProvider;
 }
 public SqlServerCeProcessor(
     [NotNull] SqlServerCeDbFactory factory,
     [NotNull] SqlServerCeGenerator generator,
     [NotNull] ILogger <SqlServerCeProcessor> logger,
     [NotNull] IOptionsSnapshot <ProcessorOptions> options,
     [NotNull] IConnectionStringAccessor connectionStringAccessor,
     [NotNull] SqlServerBatchParserFactory batchParserFactory)
     : base(() => factory.Factory, generator, logger, options.Value, connectionStringAccessor)
 {
     _sqlBatchParserFactory = batchParserFactory;
 }
 public SqlServerCeProcessor(
     [NotNull] SqlServerCeDbFactory factory,
     [NotNull] SqlServerCeGenerator generator,
     [NotNull] ILogger <SqlServerCeProcessor> logger,
     [NotNull] IOptionsSnapshot <ProcessorOptions> options,
     [NotNull] IConnectionStringAccessor connectionStringAccessor,
     [NotNull] IServiceProvider serviceProvider)
     : base(() => factory.Factory, generator, logger, options.Value, connectionStringAccessor)
 {
     _sqlBatchParserFactory = serviceProvider.GetService <SqlServerBatchParserFactory>()
                              ?? new SqlServerBatchParserFactory(serviceProvider);
 }
 public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
 {
     var factory = new SqlServerCeDbFactory();
     var connection = factory.CreateConnection(connectionString);
     return new SqlServerCeProcessor(connection, new SqlServerCeGenerator(), announcer, options, factory);
 }