Tiraggo.Interfaces.tgTransactionScope.DeEnlist C# (CSharp) Méthode

DeEnlist() public static méthode

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
Résultat void
        public static void DeEnlist(IDbCommand cmd)
        {
            tgTransactionScope current = GetCurrentTx();
            if (current == null || current.option == tgTransactionScopeOption.Suppress)
            {
                cmd.Connection.Close();
            }
        }