Tiraggo.Interfaces.tgTransactionScope.tgTransactionScope C# (CSharp) Method

tgTransactionScope() public method

Use this constructor to control the tgTransactionScopeOption as it applies to this transaction. using (tgTransactionScope scope = new tgTransactionScope(tgTransactionScopeOption.RequiresNew)) { // Do your work here scope.Complete(); }
public tgTransactionScope ( tgTransactionScopeOption option ) : System
option tgTransactionScopeOption See
return System
        public tgTransactionScope(tgTransactionScopeOption option)
        {
            if (option == tgTransactionScopeOption.None) throw new ArgumentException("'None' cannot be passed");

            this.option = option;
            this.level  = tgTransactionScope.IsolationLevel;

            CommonInit(this);

            this.root.count++;
        }

Same methods

tgTransactionScope::tgTransactionScope ( ) : System
tgTransactionScope::tgTransactionScope ( tgTransactionScopeOption option, IsolationLevel level ) : System