Пример #1
0
        public void Release(ITransaction transaction)
        {
            // We could ensure that the transaction
            // was properly closed here

            (transaction as SimpleTransaction).Dispose();

            if (transaction == _current)
            {
                _current = null;
            }
        }
Пример #2
0
		public void Release(ITransaction transaction)
		{
			// We could ensure that the transaction
			// was properly closed here

			(transaction as SimpleTransaction).Dispose();

			if (transaction == _current)
			{
				_current = null;
			}
		}
Пример #3
0
 public ITransaction CreateTransaction()
 {
     _current = new SimpleTransaction();
     return(_current);
 }
Пример #4
0
		public ITransaction CreateTransaction()
		{
			_current = new SimpleTransaction();
			return _current;
		}