Exemplo n.º 1
0
        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
            });
        }
Exemplo n.º 2
0
 public override void Initialize()
 {
     if (Running == PositionInSequence.Default)
     {
         Running = PositionInSequence.BeforeExecutables;
     }
     base.Initialize();
 }
Exemplo n.º 3
0
 public DbScriptInstallStep(IManifest manifest, CustomAttributeData rawData) : base(manifest, rawData)
 {
     Running = GetParameterValue <PositionInSequence>("Running");
 }
Exemplo n.º 4
0
 public override void Initialize()
 {
     if (Running == PositionInSequence.Default)
         Running = PositionInSequence.BeforeExecutables;
     base.Initialize();
 }
Exemplo n.º 5
0
 public DbScriptInstallStep(IManifest manifest, CustomAttributeData rawData) : base(manifest, rawData)
 {
     Running = GetParameterValue<PositionInSequence>("Running");
 }