EntityFrameworkã«é¢ãã¦ãä½ãèããã«DataTableã¨ãã¨åãããã«èãã¦ä½¿ç¨ãã¦ãããããããã«ã¯ã¾ã£ãåçã§ãã ä¼¼ã¦éãªãã¨ããã®ã¯ãããããã¨ãªã®ããªã»ã»ã»ãéããã ãã³ãã¬ã¼ãã«å¾ã ASP.NET MVCã§ã¹ãã£ãã©ã¼ã«ãã£ã³ã°ã使ç¨ãã¦ä½æããå ´åããããªæãã§ã³ã¼ããä½æããã¾ãã public class HogeController : Controller { private HogeDbContext db = new HogeDbContext(); public ActionResult Index() { return View(); } } privateã§å®£è¨ãããContextã¯ããã¾ããã³ãã¯ã·ã§ã³ç®¡çãã¦ããã§ãããããããªæè¦ã§èªèãã¦ãã¾ããã ãã®å¾ãæ¤ç´¢ããä¿åããè¡ãå¦çãæ¸ãã¦ãç°¡åãªæ¤ç´¢ã»æ´æ°ãè¡ããç»é¢ãä½æããå
{{#tags}}- {{label}}
{{/tags}}