private static InstallResult ExecuteDbScripts(PositionInSequence positionInSequence, IEnumerable <DbScriptInstallStep> dbScripts, StepVisitor visitor) { var currentScripts = (from dbScript in dbScripts where dbScript.Running == positionInSequence select dbScript).Cast <InstallStep>().ToArray <InstallStep>(); if (currentScripts.Length == 0) { return new InstallResult { Successful = true } } ; Logger.LogMessage(""); Logger.LogMessage(String.Concat("------------------- Execute DbScripts " + positionInSequence.ToString() + " -------------------")); Logger.LogMessage(""); bool needRestart; int warnings; if (!ExecuteStepFamily(currentScripts, visitor, out needRestart, out warnings)) { return(ReturnWithErrorResult()); } return(new InstallResult { Successful = true, NeedRestart = false }); }
public override void Initialize() { if (Running == PositionInSequence.Default) { Running = PositionInSequence.BeforeExecutables; } base.Initialize(); }
public DbScriptInstallStep(IManifest manifest, CustomAttributeData rawData) : base(manifest, rawData) { Running = GetParameterValue <PositionInSequence>("Running"); }
public override void Initialize() { if (Running == PositionInSequence.Default) Running = PositionInSequence.BeforeExecutables; base.Initialize(); }
public DbScriptInstallStep(IManifest manifest, CustomAttributeData rawData) : base(manifest, rawData) { Running = GetParameterValue<PositionInSequence>("Running"); }