Suppose someone (other than me) writes the following code and compiles it into an assembly:
using (SqlConnection conn = new SqlConnection(connString)) {
In case where anyone faced this problem on .Net 4.5 you can use Transaction.Current in System.Transactions.
Transaction.Current
System.Transactions