Example #1
0
 private void ExecuteScriptsAsDeltas(
     IDatabaseConnector connector, CommandPipelineContext context)
 {
     foreach (var delta in context.FolderDeltas)
     {
         var step = new Step {
             Scripts = delta.Scripts
         };
         connector.Apply(step);
     }
 }
        public virtual void Execute(CommandPipelineContext context,
            IDatabaseConnector connector,
            IEnumerable<ScriptAccessor> scripts)
        {
            if (!scripts.Any()) return;
            var step = new Step {Scripts = scripts};

            Logger.InfoFormat("Executing scripts in folder '{0}'...", Folder);
            connector.Apply(step);
            Logger.InfoFormat("Scripts in folder '{0}' executed.", Folder);
        }
Example #3
0
        public virtual void Execute(CommandPipelineContext context,
                                    IDatabaseConnector connector,
                                    IEnumerable <ScriptAccessor> scripts)
        {
            if (!scripts.Any())
            {
                return;
            }
            var step = new Step {
                Scripts = scripts
            };

            Logger.InfoFormat("Executing scripts in folder '{0}'...", Folder);
            connector.Apply(step);
            Logger.InfoFormat("Scripts in folder '{0}' executed.", Folder);
        }