{"id":1968,"date":"2011-02-04T02:32:17","date_gmt":"2011-02-03T17:32:17","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/archives\/1968"},"modified":"2011-02-04T02:51:29","modified_gmt":"2011-02-03T17:51:29","slug":"asp-net-mvc-%e3%81%8b%e3%82%89-wordpress-%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e6%89%b1%e3%81%864","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/1968","title":{"rendered":"ASP.NET MVC \u304b\u3089 wordpress \u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046(4)"},"content":{"rendered":"<p>\nASP.NET MVC \u3067\u306f LINQ to Entities \u3092\u4f7f\u3048\u308b\u306e\u3067\u3001\u3042\u3089\u304b\u3058\u3081\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3057\u3066\u304a\u304f\u3068\u697d&#8230;\u306a\u3093\u3067\u3059\u304c\u3001\u9006\u306b\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f<b>\u5927\u5909<\/b>\u3063\u3066\u306e\u304c\u3042\u308a\u307e\u3059\u306d\u3002CakePHP \u306e\u5834\u5408\u306f Model::$belongsTo \u7b49\u3067\u5f8c\u304b\u3089\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\/\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u3067\u3059\u304c\u3001LINQ to Entities \u306e\u5834\u5408\u306f\u3053\u308c\u304c\u5927\u5909\u3001\u3068\u3044\u3046\u304b\u3001\u3053\u308c\u306f\u3069\u3046\u8a2d\u5b9a\u3059\u308c\u3070\u3044\u3093\u3067\u3057\u3087\u3046\uff1f\uff1f\uff1f\u306a\u72b6\u614b\u306a\u306e\u3067\u3059\u304c\u3001\u3048\u3048\u3001\u5b9f\u306f\u610f\u5916\u3068\u7c21\u5358\u3067\u3057\u305f\u3002\n<\/p>\n<p>\n\u30c7\u30b6\u30a4\u30ca\u306e\u80cc\u666f\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u8ffd\u52a0\u300d\u2192\u300c\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u300d\u3067\u3059\u306d\u3002\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110203_07org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110203_07thum.jpg'\/><\/a><\/p>\n<p>\n\u305d\u3057\u3066\u3001\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u300c\u53c2\u7167\u306b\u95a2\u3059\u308b\u5236\u7d04\u300d\u3092\u5fd8\u308c\u305a\u306b\u8a2d\u5b9a\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110203_08org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110203_08thum.jpg'\/><\/a><\/p>\n<p>\n\u3068\u3044\u3046\u8a33\u3067\u3059\u3002\u8a73\u3057\u304f\u306f\u5f8c\u307b\u3069\u30d6\u30ed\u30b0\u306b\u66f8\u304d\u307e\u3059\u304c\u3001\u3072\u3068\u307e\u305a\uff08\u500b\u4eba\u7684\u306b\uff09\u901f\u5831\u307e\u3067\u3002\n<\/p>\n<p>\n\uff5e\n<\/p>\n<p>\n\u3055\u3066\u3001\u304a\u6b21\u306f\u30ab\u30c6\u30b4\u30ea\u5185\u306e\u8a18\u4e8b\u306e\u4e00\u89a7\u3092\u4f5c\u308a\u307e\u3059\u3002\u95a2\u9023\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306f\u4ee5\u4e0b\u306e4\u3064\u3002\n<\/p>\n<p>\n<a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110201_06org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110201_06thum.jpg'\/><\/a>\n<\/p>\n<ul>\n<li>terms: \u30ab\u30c6\u30b4\u30ea\u540d\u306a\u3069\u306e\u540d\u79f0<\/li>\n<li>term_taxonomy: terms \u306e\u5206\u985e(category, link_category \u306a\u3069)<\/li>\n<li>term_relationships: \u30ab\u30c6\u30b4\u30ea\u3068\u306e\u89aa\u5b50\u95a2\u4fc2<\/li>\n<li>posts: \u8a18\u4e8b\u81ea\u4f53<\/li>\n<\/ul>\n<p>\nCakePHP \u304b\u3089 wordpress \u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046(3) | Moonmile Solutions Blog<br \/>\n<a href=\"http:\/\/www.moonmile.net\/blog\/archives\/1922\">http:\/\/www.moonmile.net\/blog\/archives\/1922<\/a>\n<\/p>\n<p>\n\u3068\u540c\u3058\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002\n<\/p>\n<p>\n\u25a0\u30d3\u30e5\u30fc\u3092\u4f5c\u308b\n<\/p>\n<p>\n\u76ee\u6a19\u3068\u306a\u308b\u30d3\u30e5\u30fc\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\n<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n&lt;%@ Page Title=&amp;quot;&amp;quot; Language=&amp;quot;C#&amp;quot; MasterPageFile=&amp;quot;~\/Views\/Shared\/Site.Master&amp;quot; Inherits=&amp;quot;System.Web.Mvc.ViewPage&lt;IEnumerable&lt;MvcWordpress.Models.CategoryModel&gt;&gt;&amp;quot; %&gt;\n\n&lt;asp:Content ID=&amp;quot;Content1&amp;quot; ContentPlaceHolderID=&amp;quot;TitleContent&amp;quot; runat=&amp;quot;server&amp;quot;&gt;\n\tIndex\n&lt;\/asp:Content&gt;\n\n&lt;asp:Content ID=&amp;quot;Content2&amp;quot; ContentPlaceHolderID=&amp;quot;MainContent&amp;quot; runat=&amp;quot;server&amp;quot;&gt;\n\n    &lt;h2&gt;\u30ab\u30c6\u30b4\u30ea\u4e00\u89a7&lt;\/h2&gt;\n    &lt;table&gt;\n        &lt;tr&gt;\n            &lt;th&gt;term_id&lt;\/th&gt;\n            &lt;th&gt;term_taxonomy_id&lt;\/th&gt;\n            &lt;th&gt;name&lt;\/th&gt;\n            &lt;th&gt;slug&lt;\/th&gt;\n        &lt;\/tr&gt;\n\n    &lt;% foreach (var item in Model) { %&gt;\n        &lt;tr&gt;\n            &lt;td&gt;&lt;%: item.Term.term_id %&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;%: item.TermTaxonomy.term_taxonomy_id %&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;%: item.Term.name %&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;%: item.Term.slug %&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n    &lt;% } %&gt;\n    &lt;\/table&gt;\n    &lt;h2&gt;\u30ab\u30c6\u30b4\u30ea\u4e00\u89a7(\u30ea\u30f3\u30af\u7248)&lt;\/h2&gt;\n    &lt;ul&gt;\n    &lt;% foreach (var item in Model) { %&gt;\n        &lt;li&gt;&lt;a href=&amp;quot;\/Categories\/Item\/&lt;%: item.Term.slug %&gt;&amp;quot;&gt;&lt;%: item.Term.name %&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;% } %&gt;\n    &lt;\/ul&gt;\n&lt;\/asp:Content&gt;\n<\/pre>\n<p>\nCakePHP \u3068\u540c\u3058\u3088\u3046\u306b CategoryModel \u3068\u3044\u3046\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u3092\u72ec\u81ea\u306b\u4f5c\u308a\u307e\u3059\u3002\u7406\u7531\u306f\u540c\u3058\u3067\u3001wp_terms \u3082 wp_term_taxonomy \u3082\u540d\u524d\u3068\u3057\u3066\u9069\u5207\u3067\u306f\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u305d\u3046\u305d\u3046\u3001\u5f8c\u304b\u3089\u66f8\u304d\u307e\u3059\u304c\u3001\u5b9f\u306f\u4eca\u56de\u306e\u5834\u5408\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b View \u3092\u4f5c\u3063\u305f\u307b\u3046\u304c\u3088\u3044\u3067\u3059\u3002\u3068\u8a00\u3046\u306e\u3082\u3001wp_term \u306e\u6271\u3044\u304c<b>\u30e1\u30bf\u60c5\u5831\u30c7\u30fc\u30bf<\/b>\u7684\u306b\u6271\u308f\u308c\u3066\u3044\u308b\u306e\u3067\u3001wp_posts \u3084 wp_comments \u306e\u3088\u3046\u306a\u901a\u5e38\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u6271\u3044\u304c\u9055\u3046\u305f\u3081\u3067\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u306e\u7406\u7531\u306f\u3001\u6642\u9593\u304c\u3042\u308c\u3070\u5225\u9014\u3002\n<\/p>\n<p>\n\u30ab\u30c6\u30b4\u30ea\u306e\u305d\u308c\u305e\u308c\u306e\u53c2\u7167\u306f\u3001\u300citem.Term.term_id\u300d\u306b\u3001\u5143\u30c6\u30fc\u30d6\u30eb\u540d.\u30ab\u30e9\u30e0\u540d \u306e\u3088\u3046\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5f62\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30ab\u30c6\u30b4\u30ea\u306e\u305f\u3081\u306e\u5225\u540d\u3092\u4f5c\u3063\u3066\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3059\u308b\u3068\u304d\u306b\u899a\u3048\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u3057\u307e\u3046(\u518d\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u305f\u3081\u306b)\u306e\u3067\u3001\u3053\u306e\u7a0b\u5ea6\u306e\u8907\u96d1\u5ea6\u306a\u3089\u3070\u3053\u306e\u307e\u307e\u4f7f\u3044\u307e\u3059\u3002\u30ab\u30e9\u30e0\u540d\u304c\u3061\u3087\u3063\u3068\u4e0d\u660e\u306a\u611f\u3058(T200id\u3068\u304b)\u306e\u5834\u5408\u3067\u3042\u308c\u3070\u3001\u5225\u540d\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u304c\u3002\n<\/p>\n<p>\n\u25a0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u308b\n<\/p>\n<p>\n\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\n<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\npublic class CategoriesController : Controller\n{\n    \/\/\n    \/\/ GET: \/Categories\/\n\n    public ActionResult Index()\n    {\n        Models.CategoryModel cate = new Models.CategoryModel();\n        var model = cate.GetCategories();\n        return View(model);\n    }\n}\n<\/pre>\n<p>\n\u6700\u521d\u4f5c\u3063\u3066\u3044\u305f\u3068\u304d\u306f\u3001\u3053\u3053\u306b LINQ \u304c\u5165\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3084\u3081\u307e\u3057\u305f\u3002\u7406\u7531\u3068\u3057\u3066\u306f\u3001\n<\/p>\n<ul>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u5916\u90e8\u30ad\u30fc\/\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u306b\u3001\u6709\u52b9\u6d3b\u7528\u3067\u304d\u3066\u3044\u306a\u3044\u3002<\/li>\n<li>\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u8907\u96d1\u3055\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u6301\u3061\u8fbc\u3080\u306e\u306f\u9069\u5207\u3067\u306f\u306a\u3044\u3002\u30e2\u30c7\u30eb\u3068\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8fd1\u3044\u3068\u3053\u308d\u306b\u7f6e\u304f\u3079\u304d\u3060\u308d\u3046\u3002<\/li>\n<\/ul>\n<p>\n\u3068\u3057\u305f\u305f\u3081\u3067\u3059\u3002\u3061\u3087\u3063\u3068\u3057\u305f\u8a66\u884c\u932f\u8aa4\u306e\u7d50\u679c\u3067\u3059\u304c\u3001\u7c21\u5358\u306a\u30af\u30a8\u30ea\u3067\u3042\u308c\u3070\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u304a\u3044\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u8907\u96d1\u306b\u306a\u308b\u3068\u3061\u3087\u3063\u3068\u3068\u3044\u3046\u611f\u3058\u304c\u3057\u307e\u3059\u306d\u3002\u3053\u306e\u3042\u305f\u308a\u3001ASP.NET MVC \u306e\u5834\u5408\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30e2\u30c7\u30eb\u306e\u5f79\u5272\u5206\u62c5\u304c\u96e3\u3057\u3044\u3068\u3044\u3046\u611f\u3058\u304c\u3057\u307e\u3059\u3002\u9006\u306b\u8a00\u3048\u3070\u3001CakePHP \u306e\u307b\u3046\u306f\u3001\u30e2\u30c7\u30eb\u3067\u3084\u308b\u306e\u304c\u9069\u5207\u3068\u3044\u3046<b>\u5f37\u5236\u529b<\/b>\u304c\u50cd\u3044\u3066\u3044\u307e\u3059\u3002\n<\/p>\n<p>\n\u25a0\u30e2\u30c7\u30eb\u3092\u4f5c\u308b\n<\/p>\n<p>\n\u30e2\u30c7\u30eb\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306b LINQ to Entities \u306e\u30af\u30e9\u30b9\u3092\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\n<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\npublic class CategoryModel\n{\n    public wp_terms Term { get; set; }\n    public wp_term_taxonomy TermTaxonomy { get; set; }\n\n    \/\/\/ &lt;summary&gt;\n    \/\/\/ \u30ab\u30c6\u30b4\u30ea\u4e00\u89a7\u3092\u53d6\u5f97\n    \/\/\/ &lt;\/summary&gt;\n    \/\/\/ &lt;returns&gt;&lt;\/returns&gt;\n    public List&lt;CategoryModel&gt; GetCategories()\n    {\n        wordpressEntities ent = new wordpressEntities();\n        List&lt;CategoryModel&gt; model = new List&lt;CategoryModel&gt;();\n        var items = from t in ent.wp_terms\n                    where t.wp_term_taxonomy.FirstOrDefault().taxonomy == &amp;quot;category&amp;quot;\n                    select t;\n        foreach ( var item in items )\n        {\n            model.Add(new CategoryModel\n            {\n                Term = item,\n                TermTaxonomy = item.wp_term_taxonomy.First()\n            });\n        }\n        return model; \n    }\n}\n<\/pre>\n<p>\n\u30ab\u30c6\u30b4\u30ea\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u6642\u306b\u5fc5\u8981\u306a\u30c6\u30fc\u30d6\u30eb\u306f2\u3064(wp_term\u3068wp_term_taxonomy)\u306a\u306e\u3067\u3001wp_term \u3092\u4e2d\u5fc3\u306b\u3057\u3066\u691c\u7d22\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30ab\u30c6\u30b4\u30ea\u3060\u3051\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e LINQ \u306b\u5de5\u592b\u304c\u3042\u3063\u3066\u3001\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110204_01org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110204_01thum.jpg'\/><\/a><\/p>\n<p>\n\u3053\u3093\u306a\u98a8\u306b\u65e2\u306b EDM(Entity Data Model)\u306e\u307b\u3046\u306b\u306f\u5916\u90e8\u30ad\u30fc\u304c\u8a2d\u5b9a\u3057\u3066\u3042\u308b\u306e\u3067\u3001\u76f8\u4e92\u306b\u30c6\u30fc\u30d6\u30eb\u304c\u53c2\u7167\u3067\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001t.wp_term_taxonomy.taxonomy \u3068\u3057\u3066\u3001wp_term_taxnomy \u30c6\u30fc\u30d6\u30eb\u306e\u30ab\u30e9\u30e0\u3092\u6307\u5b9a\u3067\u304d\u308b\u8a33\u3067\u3059\u306d\u3002\u3053\u3053\u3067\u306f\u3001wp_term(1)-(*)wp_term_taxnomy \u3068\u3044\u3046\u95a2\u4fc2\u306a\u306e\u3067(\u79c1\u306e\u5916\u90e8\u30ad\u30fc\u306e\u8a2d\u5b9a\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u3093\u306a\u98a8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u672c\u6765\u306f 1\u5bfe1 \u3067\u3059)\u3001FirstOrDefault \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u6700\u521d\u3092\u62fe\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u304c\u3001\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5916\u90e8\u30ad\u30fc\u3092 LINQ \u3067\u518d\u5ea6 join \u3057\u306a\u304f\u3066\u6e08\u307f\u307e\u3059\u3002<br \/>\n\u3068\u8a00\u3044\u307e\u3059\u304b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u6307\u5b9a\u3057\u3066\u3042\u308b\u306e\u306b\u3001\u518d\u3073 LINQ \u3067 join \u3059\u308b\u306e\u306f O\/R \u30de\u30c3\u30d4\u30f3\u30b0\u7684\u306b\u672c\u672b\u8ee2\u5012\u3067\u3059\u3088\u306d\u3002\u95a2\u4fc2\u3068\u3044\u3046\u30ed\u30b8\u30c3\u30af\u304c2\u7b87\u6240\u306b\u5206\u6563\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\n<\/p>\n<p>\n\u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u304c\u6b21\u3067\u3059\u3002\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110204_02org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2011\/02\/wpid-dworkblogimage20110204_02thum.jpg'\/><\/a><\/p>\n<p>\n\u7dba\u9e97\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306e\u4f5c\u6210\u624b\u9806\u306f CakePHP \u3068\u9006\u306b\u306a\u308a\u307e\u3059\u306d\u3002ASP.NET MVC \u3060\u3068\u3069\u3046\u3057\u3066\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u5f15\u304b\u308c\u3066\u3057\u307e\u3046\u306e\u3068\u3001\u30a4\u30f3\u30c6\u30ea\u30bb\u30f3\u30b9\u3092\u4f7f\u3063\u3066\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u666e\u901a\u306a\u306e\u3067\u3001\u6b21\u306e\u9806\u5e8f\u3067\u4f5c\u308a\u307e\u3059\uff08\u5b9f\u969b\u4f5c\u3063\u305f\u3057\uff09\u3002\n<\/p>\n<ol>\n<li>wordpress \u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5916\u90e8\u30ad\u30fc\u3092\u8a2d\u5b9a\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089 EDM \u3078\u53d6\u308a\u8fbc\u3080(\u30e2\u30c7\u30eb\u306e\u4f5c\u6210)<\/li>\n<li>EDM \u3092\u4f7f\u3063\u3066 \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4eee\u306b\u4f5c\u6210\u3002LINQ \u7248\u3092\u4f5c\u308b\u3002<\/li>\n<li>\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3001LINQ \u306e\u30c6\u30b9\u30c8\u3002<\/li>\n<li>EDM \u3092\u4f7f\u3063\u3066 CategoryModel \u3092\u4f5c\u6210\u3002<\/li>\n<li>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e LINQ \u3092 CategoryModel \u306b\u79fb\u3057\u3066\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0<\/li>\n<\/ol>\n<p>\n\u306a\u624b\u9806\u3067\u3059\u3002\u3044\u304d\u306a\u308a\u3001CategoryModel \u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u5931\u6557\u3059\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u66f8\u3044\u3066\u5b9f\u9a13\u3059\u308b\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u65b9\u91dd\u304c\u56fa\u307e\u3063\u305f\u3089 CategoryModel \u306b\u79fb\u3057\u3066\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u306d\u3002\n<\/p>\n<p>\n\u304a\u6b21\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u5185\u306e\u4e00\u89a7\u3092 ASP.NET MVC \u3067\u4f5c\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ASP.NET MVC \u3067\u306f LINQ to Entities \u3092\u4f7f\u3048\u308b\u306e\u3067\u3001\u3042\u3089\u304b\u3058\u3081\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3057\u3066\u304a\u304f\u3068\u697d&#8230;\u306a\u3093\u3067\u3059\u304c\u3001\u9006\u306b\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5927\u5909\u3063\u3066\u306e\u304c\u3042\u308a\u307e\u3059\u306d\u3002CakePHP  &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/1968\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,19,13],"tags":[],"class_list":["post-1968","post","type-post","status-publish","format-standard","hentry","category-dev","category-asp-net","category-wordpress"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/1968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=1968"}],"version-history":[{"count":2,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/1968\/revisions"}],"predecessor-version":[{"id":1970,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/1968\/revisions\/1970"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=1968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=1968"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=1968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}