Ejemplo n.º 1
0
        public SqlServerDataStoreCreator(
            [NotNull] SqlServerConnection connection,
            [NotNull] ModelDiffer modelDiffer,
            [NotNull] SqlServerMigrationOperationSqlGeneratorFactory sqlGeneratorFactory,
            [NotNull] SqlStatementExecutor statementExecutor)
        {
            Check.NotNull(connection, "connection");
            Check.NotNull(modelDiffer, "modelDiffer");
            Check.NotNull(sqlGeneratorFactory, "sqlGeneratorFactory");
            Check.NotNull(statementExecutor, "statementExecutor");

            _connection          = connection;
            _modelDiffer         = modelDiffer;
            _sqlGeneratorFactory = sqlGeneratorFactory;
            _statementExecutor   = statementExecutor;
        }
Ejemplo n.º 2
0
 public SqlServerMigrator(
     [NotNull] DbContextConfiguration contextConfiguration,
     [NotNull] HistoryRepository historyRepository,
     [NotNull] MigrationAssembly migrationAssembly,
     [NotNull] SqlServerModelDiffer modelDiffer,
     [NotNull] SqlServerMigrationOperationSqlGeneratorFactory sqlGeneratorFactory,
     [NotNull] SqlServerSqlGenerator sqlGenerator,
     [NotNull] SqlStatementExecutor sqlStatementExecutor)
     : base(
         contextConfiguration,
         historyRepository,
         migrationAssembly,
         modelDiffer,
         sqlGeneratorFactory,
         sqlGenerator,
         sqlStatementExecutor)
 {
 }
 public SqlServerMigrator(
     [NotNull] HistoryRepository historyRepository,
     [NotNull] MigrationAssembly migrationAssembly,
     [NotNull] SqlServerModelDiffer modelDiffer,
     [NotNull] SqlServerMigrationOperationSqlGeneratorFactory sqlGeneratorFactory,
     [NotNull] SqlServerSqlGenerator sqlGenerator,
     [NotNull] SqlStatementExecutor sqlStatementExecutor,
     [NotNull] SqlServerDataStoreCreator storeCreator,
     [NotNull] SqlServerConnection connection,
     [NotNull] ILoggerFactory loggerFactory)
     : base(
         historyRepository,
         migrationAssembly,
         modelDiffer,
         sqlGeneratorFactory,
         sqlGenerator,
         sqlStatementExecutor,
         storeCreator,
         connection,
         loggerFactory)
 {
 }