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); }
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); }