Example #1
0
 public void Commit()
 {
     if (!IsClosed)
     {
         try {
             var touchedTables = TableManager.AccessedTables.ToList();
             var visibleTables = TableManager.GetVisibleTables().ToList();
             var selected      = TableManager.SelectedTables.ToArray();
             TableComposite.Commit(this, visibleTables, selected, touchedTables, Registry, commitActions);
         } finally {
             Finish();
         }
     }
 }
        public void Commit()
        {
            if (!IsClosed)
            {
                try {
                    State = TransactionState.Commit;

                    var touchedTables = TableManager.AccessedTables.ToList();
                    var visibleTables = TableManager.GetVisibleTables().ToList();
                    var selected      = TableManager.SelectedTables.ToArray();
                    TableComposite.Commit(this, visibleTables, selected, touchedTables, Registry);

                    this.OnEvent(new TransactionEvent(TransactionEventType.Commit));
                } finally {
                    Finish();
                }
            }
        }