When using a using statement with the Entity Framework, does it dispose before the function returns?
For example, say I have something like this
public ActionResult test()
{
   using (var empDb = new empEntities())
  {
     var mod = (from emps in empDb.employees 
                select emps);
     return View(mod);
  }
}
Does the using statement dispose of the entities before the return View(mod); or is it still open until the view is closed?
 
    