public ActionResult Index2() { addConstraintsTo(); // should face an exception since thre is no ambient session created, see DoesNotNeedDataAccess attribute return View("Index"); }