public static void DeEnlist(IDbCommand cmd) { tgTransactionScope current = GetCurrentTx(); if (current == null || current.option == tgTransactionScopeOption.Suppress) { cmd.Connection.Close(); } }