public ActionResult Create(Foo foo) { var blah = new dbee5034285b5e4e7885929fa50063900dEntities(); blah.Foos.AddObject(foo); blah.SaveChanges(); return RedirectToAction("Index"); }
public ActionResult Index() { //var cs = ConfigurationManager.ConnectionStrings["dbee5034285b5e4e7885929fa50063900dEntities"].ConnectionString; var cs = new dbee5034285b5e4e7885929fa50063900dEntities().Connection.ConnectionString; return View((object)cs); }
public ActionResult Index() { var foos = new dbee5034285b5e4e7885929fa50063900dEntities().Foos; return View(foos); }