title: Do Multiple Linq To Entity Queries In Entity Framework Using One DBContext Connect Only Once To The Database
body: <p>I am trying to return two result sets from an SQL Server database using Entity Framework 6.  I would like to try this by running 2 Linq to Entity queries using a single DBContext.  My question is by using a single DBContext is whether my request is only being hit by a database connection once. I think it is but I am not sure.</p>
  
  <pre><code>class RequestRefLists
  {
    public List&lt;Employee&gt; EmployeeList {get;set;}
    public List&lt;Dept&gt; DeptList {get;set;}
  }
  
      public RequestRefLists GetRequestRefLists()
     {
      RequestRefLists ReqRefLists = new RequestRefLists();
  
      using(var context= new BusinessDBContext())
      { 
        var queryResult1 = from e in context.Employees
        select e;
        ReqRefLists.EmployeeList = (List&lt;Employee&gt;)queryResult1.ToList();
  
        var queryResult2 = from d in context.Departments
        select d;
        ReqRefLists.DeptList = (List&lt;Dept&gt;)queryResult2.ToList();
      }
      return ReqRefLists;
     }
  </code></pre>