{"provider_url":"https://hatena.blog","published":"2017-07-05 10:28:34","categories":["ASP.NET MVC"],"author_name":"fskkoba","author_url":"https://blog.hatena.ne.jp/fskkoba/","description":"EntityFramework\u3092\u4f7f\u3063\u3066\u66f4\u65b0\u3059\u308b\u4e00\u822c\u7684\u306a\u4e8b\u4f8b\u3068\u3057\u3066\u3001\u3088\u304f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u898b\u304b\u3051\u307e\u3059\u3002 [HttpPost] [ValidateAntiForgeryToken] public ActionResult Edit(Product product) { if(ModelState.IsValid) { db.Entry(product).State = EntityState.Modified; db.SavaChanges(); return RedirectToAction(\"List\"); } return View(product); } \u78ba\u304b\u306b\u5168\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5bfe\u8c61\u3068\u3057\u305f\u30d5\u2026","image_url":null,"type":"rich","blog_url":"https://kobarin.hateblo.jp/","height":"190","url":"https://kobarin.hateblo.jp/entry/2017/07/05/102834","blog_title":"Kobarin's Development Blog","version":"1.0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkobarin.hateblo.jp%2Fentry%2F2017%2F07%2F05%2F102834\" title=\"SaveChanges()\u306b\u3088\u308b\u7279\u5b9a\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u66f4\u65b0 - Kobarin&#39;s Development Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"SaveChanges()\u306b\u3088\u308b\u7279\u5b9a\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u66f4\u65b0","width":"100%"}