title: Entity Framework database connection question
body: <p>We are using <code>.Net Entity Framework</code> to do our database related work. Our database is <code>Sybase SQL Anywhere</code>.</p>
  
  <pre><code>using (AndeDBEntities db = new AndeDBEntities(decryptConnStr()))
  {
  
  }
  </code></pre>
  
  <p>We use a lots of above statements to access database. My questions are do we need to close the connection each time after the access is done and how to do that? </p>
  
  <p>At one time I saw "Database server connection limit exceeded" error. I am wondering there must be something wrong in our database connection code.</p>