{"id":6424,"date":"2026-05-08T14:37:41","date_gmt":"2026-05-08T05:37:41","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=6424"},"modified":"2026-10-08T14:37:58","modified_gmt":"2026-10-08T05:37:58","slug":"aspnet-core-mvc-model-view-controller","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/6424\/","title":{"rendered":"ASP.NET Core MVC\u3068\u306f\uff1fModel\u30fbView\u30fbController\u306e\u5f79\u5272\u3068\u51e6\u7406\u306e\u6d41\u308c"},"content":{"rendered":"<p>ASP.NET Core MVC\u306f\u3001Web\u30a2\u30d7\u30ea\u3092**Model\u30fbView\u30fbController**\u306e3\u3064\u306e\u8cac\u52d9\u306b\u5206\u3051\u3066\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306eASP.NET Core\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u3088\u3063\u3066Controller\u306eAction\u3078\u5c4a\u304d\u3001Controller\u304c\u5fc5\u8981\u306a\u51e6\u7406\u3084\u30c7\u30fc\u30bf\u53d6\u5f97\u3092\u9032\u3081\u3001\u6700\u5f8c\u306bView\u3078\u8868\u793a\u7528\u30c7\u30fc\u30bf\u3092\u6e21\u3057\u3066HTML\u3092\u8fd4\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u300eController\u304c\u5165\u53e3\u3001View\u304c\u8868\u793a\u3001Model\u5074\u306b\u72b6\u614b\u3084\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u5bc4\u305b\u308b\u300f\u3068\u3044\u3046\u6d41\u308c\u3092\u62bc\u3055\u3048\u308b\u3068\u3001\u65e2\u5b58\u30b3\u30fc\u30c9\u3092\u8ffd\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u305a\u6574\u7406\uff1aModel\u30fbView\u30fbController\u306f\u4f55\u3092\u62c5\u5f53\u3059\u308b\uff1f<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u8981\u7d20<\/th>\n<th>\u4e3b\u306a\u5f79\u5272<\/th>\n<th>\u7f6e\u304d\u3059\u304e\u306a\u3044\u3082\u306e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Model<\/td>\n<td>\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u30fb\u30c7\u30fc\u30bf\u30fb\u696d\u52d9\u30eb\u30fc\u30eb\u3092\u8868\u3059<\/td>\n<td>\u753b\u9762\u8868\u793a\u306e\u90fd\u5408\u3060\u3051\u306e\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>View<\/td>\n<td>Razor\u3067HTML\u306a\u3069\u306eUI\u3092\u8868\u793a\u3059\u308b<\/td>\n<td>\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3084\u8907\u96d1\u306a\u696d\u52d9\u30ed\u30b8\u30c3\u30af<\/td>\n<\/tr>\n<tr>\n<td>Controller<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u3001\u5fc5\u8981\u306a\u51e6\u7406\u3092\u547c\u3073\u3001\u8fd4\u3059View\u3084\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u6c7a\u3081\u308b<\/td>\n<td>\u9577\u5927\u306a\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3084\u8868\u793a\u30ed\u30b8\u30c3\u30af<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Microsoft\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001MVC\u306f\u95a2\u5fc3\u306e\u5206\u96e2\u3092\u5b9f\u73fe\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3068\u3057\u3066\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002View\u3068Controller\u306fModel\u3092\u5229\u7528\u3057\u307e\u3059\u304c\u3001Model\u306fView\u3084Controller\u306b\u4f9d\u5b58\u3057\u306a\u3044\u5f62\u306b\u3059\u308b\u3053\u3068\u3067\u3001UI\u304b\u3089\u5207\u308a\u96e2\u3057\u3066\u30ed\u30b8\u30c3\u30af\u3092\u6271\u3044\u3084\u3059\u304f\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u95a2\u5fc3\u306e\u5206\u96e2<\/strong><br \/>\u753b\u9762\u8868\u793a\u3001\u5165\u529b\u51e6\u7406\u3001\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u306a\u3069\u7570\u306a\u308b\u8cac\u52d9\u3092\u5206\u3051\u308b\u8003\u3048\u65b9\u3067\u3059\u3002\u5909\u66f4\u7406\u7531\u304c\u9055\u3046\u30b3\u30fc\u30c9\u3092\u5225\u306e\u5834\u6240\u306b\u7f6e\u304f\u3053\u3068\u3067\u3001\u4fee\u6b63\u3084\u30c6\u30b9\u30c8\u306e\u5f71\u97ff\u7bc4\u56f2\u3092\u6291\u3048\u3084\u3059\u304f\u3057\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<hr>\n<h2>\u30ea\u30af\u30a8\u30b9\u30c8\u306fRouting\u2192Controller\u2192Model\/ViewModel\u2192View\u306e\u9806\u306b\u6d41\u308c\u308b<\/h2>\n<ul>\n<li>1. \u30d6\u30e9\u30a6\u30b6\u304c`\/products\/42`\u306a\u3069\u306eURL\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b<\/li>\n<li>2. ASP.NET Core\u306eRouting\u304cURL\u3092Controller\u306eAction\u3078\u5bfe\u5fdc\u4ed8\u3051\u308b<\/li>\n<li>3. Controller\u304cAction\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308a\u3001\u5fc5\u8981\u306aService\u3084Model\u5074\u306e\u51e6\u7406\u3092\u547c\u3076<\/li>\n<li>4. \u8868\u793a\u7528\u306eViewModel\u3092\u7d44\u307f\u7acb\u3066\u308b<\/li>\n<li>5. Controller\u304cView\u3078ViewModel\u3092\u6e21\u3059<\/li>\n<li>6. Razor View\u304cHTML\u3092\u751f\u6210\u3057\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3068\u3057\u3066\u8fd4\u3059<\/li>\n<\/ul>\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u3067\u306f\u3001Controller\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u76f4\u63a5\u3059\u3079\u3066\u306e\u51e6\u7406\u3092\u66f8\u304f\u306e\u3067\u306f\u306a\u304f\u3001Service\u3084\u30c9\u30e1\u30a4\u30f3\u30ed\u30b8\u30c3\u30af\u3092\u631f\u3080\u8a2d\u8a08\u3082\u4e00\u822c\u7684\u3067\u3059\u3002MVC\u306e3\u8a9e\u3092\u300e\u30d5\u30a9\u30eb\u30c0\u540d\u300f\u3068\u3057\u3066\u6697\u8a18\u3059\u308b\u3088\u308a\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u306e\u8cac\u52d9\u3092\u3069\u3053\u306b\u7f6e\u304f\u304b\u3067\u8aad\u3080\u3068\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h2>\u6700\u5c0f\u69cb\u6210\u3092\u898b\u308b\u3068MVC\u306e\u5f79\u5272\u304c\u3064\u306a\u304c\u308b<\/h2>\n<p>\u307e\u305aProgram.cs\u3067MVC\u7528\u306eService\u3068Controller\u5411\u3051\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre><code>var builder = WebApplication.CreateBuilder(args);\r\n\r\nbuilder.Services.AddControllersWithViews();\r\n\r\nvar app = builder.Build();\r\n\r\napp.MapControllerRoute(\r\n    name: &quot;default&quot;,\r\n    pattern: &quot;{controller=Home}\/{action=Index}\/{id?}&quot;);\r\n\r\napp.Run();<\/code><\/pre>\n<p>\u6b21\u306bController\u306eAction\u3067\u8868\u793a\u7528\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u3001View\u3078\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code>public class HomeController : Controller\r\n{\r\n    public IActionResult Index()\r\n    {\r\n        var viewModel = new HomeViewModel(&quot;MVC\u306e\u57fa\u672c&quot;);\r\n        return View(viewModel);\r\n    }\r\n}\r\n\r\npublic record HomeViewModel(string Title);<\/code><\/pre>\n<p>Razor View\u3067\u306f\u53d7\u3051\u53d6\u3063\u305fViewModel\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>@model HomeViewModel\r\n\r\n&lt;h1&gt;@Model.Title&lt;\/h1&gt;<\/code><\/pre>\n<p>\u3053\u306e\u5c0f\u3055\u306a\u4f8b\u3067\u3082\u3001\u5165\u53e3\u3092Controller\u3001\u8868\u793a\u3092View\u3001\u8868\u793a\u7528\u30c7\u30fc\u30bf\u3092ViewModel\u3078\u5206\u3051\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3084\u6c38\u7d9a\u5316\u51e6\u7406\u304c\u5897\u3048\u3066\u3082\u3001View\u3078\u76f4\u63a5\u62bc\u3057\u8fbc\u307e\u305a\u8cac\u52d9\u3054\u3068\u306b\u5206\u3051\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/p>\n<hr>\n<h2>Model\u3068ViewModel\u306f\u540c\u3058\u3082\u306e\u3067\u306f\u306a\u3044<\/h2>\n<p>MVC\u306eModel\u306f\u5e83\u3044\u6982\u5ff5\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u3084\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u8868\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001ViewModel\u306f\u7279\u5b9a\u306eView\u304c\u8868\u793a\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u308b\u578b\u3067\u3059\u3002Microsoft\u306eMVC\u6982\u8981\u3067\u3082\u3001\u53b3\u5bc6\u306b\u578b\u6307\u5b9a\u3055\u308c\u305fView\u3067\u306f\u8868\u793a\u7528\u30c7\u30fc\u30bf\u3092\u6301\u3064ViewModel\u578b\u3092\u4f7f\u3046\u8a2d\u8a08\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u89b3\u70b9<\/th>\n<th>Model \/ Domain\u5074<\/th>\n<th>ViewModel<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u76ee\u7684<\/td>\n<td>\u696d\u52d9\u4e0a\u306e\u72b6\u614b\u3084\u30eb\u30fc\u30eb\u3092\u8868\u3059<\/td>\n<td>View\u304c\u5fc5\u8981\u306a\u8868\u793a\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u5909\u66f4\u7406\u7531<\/td>\n<td>\u696d\u52d9\u4ed5\u69d8\u3084\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u5909\u66f4<\/td>\n<td>\u753b\u9762\u8868\u793a\u8981\u4ef6\u306e\u5909\u66f4<\/td>\n<\/tr>\n<tr>\n<td>View\u3068\u306e\u95a2\u4fc2<\/td>\n<td>View\u3078\u76f4\u63a5\u6e21\u3059\u3068\u306f\u9650\u3089\u306a\u3044<\/td>\n<td>\u7279\u5b9aView\u5411\u3051\u306b\u8a2d\u8a08\u3067\u304d\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306eEntity\u3092\u305d\u306e\u307e\u307eView\u306e\u90fd\u5408\u3078\u5bc4\u305b\u59cb\u3081\u305f\u5834\u5408\u306f\u3001ViewModel\u3078\u5206\u3051\u308b\u4f59\u5730\u304c\u306a\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>Routing\u3068Model Binding\u304cController\u3078\u306e\u5165\u53e3\u3092\u6574\u3048\u308b<\/h2>\n<p>ASP.NET Core MVC\u306fASP.NET Core\u306eRouting\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u898f\u7d04\u30d9\u30fc\u30b9\u306e\u30eb\u30fc\u30c8\u3067\u306f`{controller}\/{action}\/{id?}`\u306e\u3088\u3046\u306a\u30d1\u30bf\u30fc\u30f3\u304b\u3089Action\u3092\u6c7a\u3081\u3089\u308c\u307e\u3059\u3002Attribute Routing\u3092\u4f7f\u3063\u3066Controller\u3084Action\u306e\u8fd1\u304f\u306b\u30eb\u30fc\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Controller\u3078\u5c4a\u3044\u305f\u30d5\u30a9\u30fc\u30e0\u5024\u3001Route\u5024\u3001Query String\u306a\u3069\u306fModel Binding\u306b\u3088\u3063\u3066Action\u306e\u5f15\u6570\u3084Object\u3078\u5909\u63db\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001Action\u5074\u3067HTTP\u5165\u529b\u30921\u3064\u305a\u3064\u6587\u5b57\u5217\u304b\u3089\u7d44\u307f\u7acb\u3066\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u578b\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u8a2d\u8a08\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Controller\u3068View\u3092\u592a\u3089\u305b\u306a\u3044\u306e\u304cMVC\u3092\u6d3b\u304b\u3059\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p>Controller\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5165\u53e3\u306a\u306e\u3067\u51e6\u7406\u3092\u96c6\u3081\u3084\u3059\u3044\u4e00\u65b9\u3001\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u5927\u91cf\u306b\u66f8\u304f\u3068\u8cac\u52d9\u304c\u6df7\u3056\u308a\u307e\u3059\u3002Microsoft\u306eMVC\u6982\u8981\u3067\u3082\u3001Controller\u3092\u904e\u5ea6\u306b\u8907\u96d1\u306b\u305b\u305a\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3092Controller\u304b\u3089\u5916\u3059\u3053\u3068\u304c\u6848\u5185\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Controller\uff1a\u5165\u529b\u3092\u53d7\u3051\u3001\u5fc5\u8981\u306a\u51e6\u7406\u3092\u547c\u3073\u3001\u7d50\u679c\u3092\u8fd4\u3059\u6d41\u308c\u306b\u96c6\u4e2d\u3059\u308b<\/li>\n<li>View\uff1a\u8868\u793a\u306b\u5fc5\u8981\u306aRazor\u3068UI\u30ed\u30b8\u30c3\u30af\u3078\u7d5e\u308b<\/li>\n<li>ViewModel\uff1a\u753b\u9762\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u5f62\u72b6\u3092\u8868\u3059<\/li>\n<li>\u696d\u52d9\u30ed\u30b8\u30c3\u30af\uff1aDomain Model\u3084Service\u306a\u3069\u3001UI\u304b\u3089\u5206\u96e2\u3057\u305f\u5834\u6240\u3078\u5bc4\u305b\u308b<\/li>\n<\/ul>\n<p>\u300eController\u306b\u66f8\u3051\u308b\u304b\u3089\u66f8\u304f\u300f\u300eView\u3067\u8a08\u7b97\u3067\u304d\u308b\u304b\u3089\u8a08\u7b97\u3059\u308b\u300f\u3067\u306f\u306a\u304f\u3001\u5909\u66f4\u7406\u7531\u304c\u3069\u3053\u306b\u5c5e\u3059\u308b\u304b\u3067\u7f6e\u304d\u5834\u6240\u3092\u6c7a\u3081\u308b\u3068\u4fdd\u5b88\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>2026\u5e74\u6642\u70b9\u3067MVC\u306f\u3069\u3093\u306a\u4f4d\u7f6e\u3065\u3051\uff1f<\/h2>\n<p>ASP.NET Core MVC\u306f\u73fe\u5728\u3082ASP.NET Core 10.0\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3001\u6210\u719f\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9Web UI\u306e\u9078\u629e\u80a2\u3067\u3059\u3002\u4e00\u65b9\u3001Microsoft\u306e\u73fe\u5728\u306e\u300eChoose an ASP.NET Core web UI\u300f\u3067\u306f\u3001\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u591a\u304f\u306eWeb UI\u30b7\u30ca\u30ea\u30aa\u3067Blazor\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u300eASP.NET Core\u306a\u3089\u5fc5\u305aMVC\u3092\u9078\u3076\u300f\u3068\u8003\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u65e2\u5b58MVC\u30b7\u30b9\u30c6\u30e0\u306e\u4fdd\u5b88\u3001Controller\/View\u306e\u8cac\u52d9\u5206\u96e2\u3092\u6d3b\u304b\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3001\u5927\u898f\u6a21\u306aMVC\u8cc7\u7523\u306a\u3069\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524d\u63d0\u306b\u5408\u308f\u305b\u3066\u9078\u3073\u307e\u3059\u3002Razor Pages\u3084Blazor\u3068\u306e\u8a73\u7d30\u6bd4\u8f03\u306f\u5225\u306e\u691c\u7d22\u610f\u56f3\u306a\u306e\u3067\u3001\u3053\u3053\u3067\u306fMVC\u305d\u306e\u3082\u306e\u306e\u4ed5\u7d44\u307f\u306b\u7d5e\u308a\u307e\u3059\u3002<\/p>\n<h2>ASP.NET\u3068VB.NET\u3092\u6df7\u540c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u5148\u306b\u7528\u8a9e\u3092\u5206\u3051\u308b<\/h2>\n<p>ASP.NET Core\u306fWeb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u305f\u3081\u306e.NET\u5074\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u7fa4\u3067\u3001MVC\u306f\u305d\u306e\u4e2d\u3067\u4f7f\u3048\u308bWeb\u30a2\u30d7\u30ea\u69cb\u7bc9\u30d1\u30bf\u30fc\u30f3\uff0f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002VB.NET\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306a\u306e\u3067\u3001\u540c\u3058\u968e\u5c64\u306e\u7528\u8a9e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\uff08ASP.NET\u3068VB.NET\u306e\u7528\u8a9e\u5dee\u304b\u3089\u6574\u7406\u3057\u305f\u3044\u5834\u5408\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1274\/\">ASP.NET\u3068VB.NET\u306e\u9055\u3044\u3068\u306f\uff1f\u521d\u5fc3\u8005\u304c\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u9078\u3073\u65b9\u3068\u5b66\u7fd2\u306e\u30dd\u30a4\u30f3\u30c8<\/a>\u300f\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09<\/p>\n<h2>\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n<h3>ASP.NET Core MVC\u306eModel\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u540c\u3058\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u5fc5\u305a\u3057\u3082\u540c\u3058\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002Model\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u3084\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u8868\u3059\u5e83\u3044\u6982\u5ff5\u3067\u3059\u3002Entity\u3001Domain Model\u3001\u8868\u793a\u7528ViewModel\u306a\u3069\u3092\u76ee\u7684\u306b\u5fdc\u3058\u3066\u5206\u3051\u308b\u8a2d\u8a08\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>View\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30af\u30bb\u30b9\u3092\u66f8\u3044\u3066\u3082\u52d5\u304d\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u6280\u8853\u7684\u306b\u66f8\u3051\u308b\u5834\u5408\u304c\u3042\u3063\u3066\u3082\u3001View\u306f\u8868\u793a\u306b\u96c6\u4e2d\u3055\u305b\u308b\u306e\u304cMVC\u306e\u8cac\u52d9\u5206\u96e2\u306b\u5408\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u53d6\u5f97\u3084\u696d\u52d9\u51e6\u7406\u306fController\u304b\u3089\u547c\u3076Service\u3084Model\u5074\u3078\u5206\u3051\u308b\u65b9\u304c\u3001\u30c6\u30b9\u30c8\u3084\u5909\u66f4\u306e\u5f71\u97ff\u3092\u7ba1\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>ASP.NET Core MVC\u3067API\u3082\u4f5c\u308c\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u306f\u3044\u3002ASP.NET Core MVC\u306fWeb\u30a2\u30d7\u30ea\u3060\u3051\u3067\u306a\u304fWeb API\u306e\u69cb\u7bc9\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u753b\u9762\u7528Controller\/View\u3068API Controller\u3067\u306f\u8fd4\u3059\u30ec\u30b9\u30dd\u30f3\u30b9\u3084\u8a2d\u8a08\u76ee\u7684\u304c\u7570\u306a\u308b\u305f\u3081\u3001\u7528\u9014\u3092\u5206\u3051\u3066\u8003\u3048\u307e\u3059\u3002<\/p>\n<h3>\u65b0\u898f\u958b\u767a\u306a\u3089MVC\u3092\u9078\u3079\u3070\u3088\u3044\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u4e00\u5f8b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002Microsoft\u306f\u73fe\u5728\u3001\u591a\u304f\u306e\u65b0\u898fWeb UI\u30b7\u30ca\u30ea\u30aa\u3067Blazor\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002MVC\u3001Razor Pages\u3001Blazor\u306a\u3069\u3092\u8981\u4ef6\u30fb\u65e2\u5b58\u8cc7\u7523\u30fb\u30c1\u30fc\u30e0\u7d4c\u9a13\u306b\u5408\u308f\u305b\u3066\u6bd4\u8f03\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\uff1aMVC\u306f3\u3064\u306e\u540d\u524d\u3088\u308a\u300c\u8cac\u52d9\u3068\u51e6\u7406\u306e\u6d41\u308c\u300d\u3067\u7406\u89e3\u3059\u308b<\/h2>\n<ul>\n<li>Controller\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u3001\u5fc5\u8981\u306a\u51e6\u7406\u3068\u8fd4\u3059\u7d50\u679c\u3092\u8abf\u6574\u3059\u308b<\/li>\n<li>Model\u5074\u306b\u30a2\u30d7\u30ea\u306e\u72b6\u614b\u3084\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u5bc4\u305b\u308b<\/li>\n<li>View\u306fRazor\u3067\u8868\u793a\u3092\u62c5\u5f53\u3057\u3001\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u62b1\u3048\u8fbc\u307e\u306a\u3044<\/li>\n<li>ViewModel\u3092\u4f7f\u3046\u3068\u753b\u9762\u8868\u793a\u7528\u30c7\u30fc\u30bf\u3092\u696d\u52d9Model\u304b\u3089\u5206\u3051\u3084\u3059\u3044<\/li>\n<li>Routing\u3068Model Binding\u304cHTTP\u5165\u529b\u304b\u3089Controller Action\u307e\u3067\u3092\u3064\u306a\u3050<\/li>\n<li>\u73fe\u5728\u306e\u65b0\u898fUI\u9078\u629e\u3067\u306fMVC\u3092\u81ea\u52d5\u63a1\u7528\u305b\u305a\u3001Blazor\u306a\u3069\u4ed6\u306e\u9078\u629e\u80a2\u3082\u8981\u4ef6\u306b\u5408\u308f\u305b\u3066\u6bd4\u8f03\u3059\u308b<\/li>\n<\/ul>\n<p>\u65e2\u5b58\u306eASP.NET Core MVC\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u3068\u304d\u306f\u3001URL\u306b\u5bfe\u5fdc\u3059\u308bController Action\u3092\u898b\u3064\u3051\u3001\u305d\u3053\u304b\u3089ViewModel\u3068View\u3078\u9806\u306b\u8ffd\u3046\u3068\u3001\u51e6\u7406\u306e\u5168\u4f53\u50cf\u3092\u3064\u304b\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"featured_media":6425,"template":"","meta":{"ssp_meta_title":"ASP.NET Core MVC\u3068\u306f\uff1fModel\u30fbView\u30fbController\u306e\u5f79\u5272\u3092\u89e3\u8aac","ssp_meta_description":"ASP.NET Core MVC\u3068\u306f\u4f55\u304b\u3092\u3001Model\u30fbView\u30fbController\u306e\u5f79\u5272\u3068\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u306e\u6d41\u308c\u304b\u3089\u89e3\u8aac\u3002\u6700\u5c0f\u69cb\u6210\u306eC#\u30fbRazor\u30b3\u30fc\u30c9\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3001ViewModel\u3001\u73fe\u5728\u306eUI\u9078\u629e\u3067MVC\u3092\u3069\u3046\u4f4d\u7f6e\u3065\u3051\u308b\u304b\u307e\u3067\u6574\u7406\u3057\u307e\u3059\u3002","ssp_meta_keyword":"ASP.NET Core MVC \u3068\u306f,ASP.NET Core MVC,MVC Model View Controller,ASP.NET Core Controller View Model,ASP.NET Core \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0,Razor View,ASP.NET Core ViewModel","ssp_meta_canonical":""},"route_category":[9],"_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/6424"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/6425"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=6424"}],"wp:term":[{"taxonomy":"route_category","embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route_category?post=6424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}