Пример #1
0
        public void SaveChanges()
        {
            var transaction = _connection.BeginTransaction();
            var ant         = new AdoNetTransactions(transaction, RemoveTransaction, RemoveTransaction);

            ant.SaveChanges();
        }
Пример #2
0
 private void RemoveTransaction(AdoNetTransactions obj)
 {
     _rwLock.EnterWriteLock();
     _ants.Remove(obj);
     _rwLock.ExitWriteLock();
 }