Esempio n. 1
0
        public ITransactionScope BeginTransaction()
        {
            RaiseDisposed();

            if (IsOpenScope)
            {
                throw new MzLiteIOException("Illegal attempt transaction scope reentrancy.");
            }

            try
            {
                currentScope = new MzLiteSQLTransactionScope(this, connection);
                return(currentScope);
            }
            catch (Exception ex)
            {
                throw new MzLiteIOException(ex.Message, ex);
            }
        }
Esempio n. 2
0
 internal void ReleaseTransactionScope()
 {
     currentScope = null;
 }