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

DeEnlist() public static method

You should never call this directly, the providers call this method.
public static DeEnlist ( IDbCommand cmd ) : void
cmd IDbCommand The command to enlist into a transaction
return void
        public static void DeEnlist(IDbCommand cmd)
        {
            tgTransactionScope current = GetCurrentTx();
            if (current == null || current.option == tgTransactionScopeOption.Suppress)
            {
                cmd.Connection.Close();
            }
        }