Exemplo n.º 1
0
        protected override void ExecuteCommandsWithinExceptionHandler(int index, DbUp.Engine.SqlScript script, Action executeCommand)
        {
            SqlScript s         = (SqlScript)script;
            var       stopWatch = System.Diagnostics.Stopwatch.StartNew();

            try
            {
                base.ExecuteCommandsWithinExceptionHandler(index, s, executeCommand);
            }
            catch
            {
                throw;
            }
            finally
            {
                stopWatch.Stop();
                s.SetExecutionTime(stopWatch.ElapsedMilliseconds);
            }
        }