title: Entity Framework :Using Transaction Scope how to check whether DbContext has transaction?
body: <p>As mentioned <a href="https://stackoverflow.com/questions/34748872/how-to-check-whether-dbcontext-has-transaction">here</a>
  using Entity Framework 6 if we begin a transaction using  <code>Database.BeginTransaction()</code> 
  we can check whether a context has a transaction using this statement:</p>
  
  <pre><code>var transaction = db.Database.CurrentTransaction;
  </code></pre>
  
  <p>Unfortunately this way is not working if we used <a href="https://msdn.microsoft.com/en-us/library/system.transactions.transactionscope(v=vs.110).aspx" rel="nofollow noreferrer">TrasctionScope</a> 
  to begin transaction :</p>
  
  <pre><code>var transactionScope = new TransactionScope();
  </code></pre>
  
  <p>I'm just wondering if there is any way to check whether a context has a transaction when I'm using <a href="https://msdn.microsoft.com/en-us/library/system.transactions.transactionscope(v=vs.110).aspx" rel="nofollow noreferrer">TrasctionScope</a> ?</p>