Example #1
0
 public UpgradeExecutingEventArgs(IProgressProcessRunner process)
 {
     if (process == null)
     {
         throw new ArgumentNullException("process");
     }
     _process = process;
 }
Example #2
0
        private void OnUpgradeExecuting(IProgressProcessRunner process)
        {
            if (process == null)
            {
                return;
            }

            var handler = UpgradeExecuting;

            if (handler != null)
            {
                handler(this, new UpgradeExecutingEventArgs(process));
            }
            else
            {
                process.Process();
            }

            if (process.Exception != null)
            {
                throw new DataException("Database upgrade failed.", process.Exception);
            }
        }
Example #3
0
 public UpgradeExecutingEventArgs(IProgressProcessRunner process)
 {
    if (process == null) throw new ArgumentNullException("process");
    _process = process;
 }
Example #4
0
      private void OnUpgradeExecuting(IProgressProcessRunner process)
      {
         if (process == null) return;

         var handler = UpgradeExecuting;
         if (handler != null)
         {
            handler(this, new UpgradeExecutingEventArgs(process));
         }
         else
         {
            process.Process();
         }

         if (process.Exception != null)
         {
            throw new DataException("Database upgrade failed.", process.Exception);
         }
      }