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();
}
}