Exemplo n.º 1
0
 public DatabaseMigrator(IConfiguration configuration, ScriptSubstitutor scriptSubstitutor, Scripts scripts, Internal.Scripts internalScripts, ILogger <DatabaseMigrator> logger)
 {
     _configuration     = configuration;
     _scriptSubstitutor = scriptSubstitutor;
     _scripts           = scripts;
     _internalScripts   = internalScripts;
     _connectionString  = _configuration.GetConnectionString("Target_Database");
     _logger            = logger;
 }
Exemplo n.º 2
0
 public Scripts(IConfiguration configuration, ScriptSubstitutor scriptSubstitutor)
 {
     _specifications    = configuration.GetSection("SqlScripts").Get <List <string> >();
     _scriptSubstitutor = scriptSubstitutor;
 }