title: How to create a static UnitOfWork for entity framework 4?
body: <p>Considering this class</p>
  
  <pre><code>public class XQueries
  {
      public IQueryable Query1()
      {
          using (XEntities context = new XEntities())
          {
              return something;
          }
      }
  
      public IQueryable Query2()
      {
          using (XEntities context = new XEntities())
          {
              return somethingElse;
          }
      }
  }
  </code></pre>
  
  <p>Is a connection to the database created for every (XEntities context = new XEntities()) {...} ? If so what is the correct way to create a static UnitOfWork class so that only 1 connection to exist?</p>