title: Check if there's a open connection to database asp.net/c#
body: <p>Everytime my application runs a stored procedure it does something like this:</p>
  
  <pre><code>using (DbBase conn = new DbBase())
  {      
      //call sproc
  }
  </code></pre>
  
  <p>the <code>DBBase()</code> opens the connection with a LINQ <code>DataContext</code>.</p>
  
  <p>What I wanted to know, if <strong>there's a way to know if a connection has already been opened, and use that instead of opening a new one</strong>. That verification should be done inside the <code>DbBase()</code> constructor that goes like this:</p>
  
  <pre><code>ClientDB = new ClientDBDataContext([ConnectionString from web.config]);
  </code></pre>
  
  <p>Thank you</p>