{"id":9141,"date":"2018-05-24T09:20:00","date_gmt":"2018-05-24T00:20:00","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=9141"},"modified":"2018-05-22T15:16:26","modified_gmt":"2018-05-22T06:16:26","slug":"%e7%8b%ac%e8%87%aa%e3%81%ab%e3%83%9d%e3%83%bc%e3%83%88%e3%83%95%e3%82%a9%e3%83%af%e3%83%bc%e3%83%89%e4%bd%9c%e6%88%90%e3%81%97%e3%80%81%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%81%ae-mysql-%e3%81%b8-lin","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/9141","title":{"rendered":"\u72ec\u81ea\u306b\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u4f5c\u6210\u3057\u3001\u30e9\u30ba\u30d1\u30a4\u306e MySQL \u3078 LINQ \u3067\u63a5\u7d9a\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3001MySQL Workbench \u304b\u3089 SSH \u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u30e9\u30ba\u30d1\u30a4\u306e MySQL \u3078\u63a5\u7d9a\u3067\u304d\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u304c\u3001\u3058\u3083\u3042\u72ec\u81ea\u306e C# \u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306f\u3069\u3046\u3059\u308b\u306e\u304b\uff1f\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308b\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001workbench \u304c\u7acb\u3066\u3066\u304f\u308c\u3066\u3044\u305f ssh \u3092\u81ea\u524d\u3067\u5efa\u3066\u308b\u3053\u3068\u306b\u306a\u308b\u3002\u3044\u304f\u3064\u304b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3060\u3051\u3069\uff08Putty \u3084 Tera Term \u3067\u5efa\u3066\u308b\u3053\u3068\u3082\u3067\u304d\u308b\uff09\u3001\u4eca\u3060\u3068 Ubuntu on Windows \u3092\u4f7f\u3063\u3066 ssh \u3092\u7acb\u3066\u3066\u3057\u307e\u3063\u305f\u307b\u3046\u304c\u65e9\u3044\u307f\u305f\u3044\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image-29.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"362\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image_thumb-29.png\" border=\"0\"><\/a><\/p>\n<p>\u5de6\u306b\u3042\u308b\u7dd1\u8272\u306e SSH \u3092\u81ea\u524d\u3067\u5efa\u3066\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nssh -L 19000:localhost:3306 pi@raspi3.local\r\n<\/pre>\n<p>\u3061\u3087\u3063\u3068\u9806\u756a\u304c\u3084\u3084\u3053\u3057\u3044\u306e\u3060\u3051\u3069\u3001MySQL Workbench \u306e\u8a2d\u5b9a\u306b\u5408\u308f\u305b\u308b\u3068\u3001<\/p>\n<ul>\n<li>SSH Hostname: raspi3.local<\/li>\n<li>SSH Username: pi<\/li>\n<li>MySQL Hostname: localhost<\/li>\n<\/ul>\n<p>\u3068\u306a\u308b\u3001\u81ea\u524d\u3067\u5efa\u3066\u308b SSH \u306e\u30dd\u30fc\u30c8\u756a\u53f7\u306f 19000 \u756a\u306b\u306a\u308b\u306e\u3067\u3001localhost:19000 \u306b\u63a5\u7d9a\u3059\u308b\u3068\u3001raspi3.local:3306 \u3078\u63a5\u7d9a\u3057\u305f\u306e\u3068\u540c\u3058\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<ul>\n<\/ul>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image-30.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"335\" title=\"image\" style=\"border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image_thumb-30.png\" border=\"0\"><\/a><\/p>\n<p>\u3053\u306e 19000\u756a\u306b\u4f7f\u3063\u3066 MySQL workbench \u304b\u3089\u63a5\u7d9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u5f53\u7136\u3001Ubuntu on Windows \u306e\u753b\u9762\u3092\u9589\u3058\u308b\u3068 SSH \u304c\u6b62\u307e\u308b\u306e\u3067\u3001\u3053\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u7acb\u3061\u4e0a\u3052\u3063\u3071\u306a\u3057\u306b\u3059\u308b\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image-31.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"428\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image_thumb-31.png\" border=\"0\"><\/a><\/p>\n<h2>\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066 MySQL \u3078\u63a5\u7d9a\u3059\u308b<\/h2>\n<p>LINQ\u3092\u4f7f\u3063\u3066MySQL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b | Moonmile Solutions Blog <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/9093\">http:\/\/www.moonmile.net\/blog\/archives\/9093<\/a><\/p>\n<p>.NET Core\u4e0a\u3067LINQ\u3092\u4f7f\u3063\u3066MySQL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b | Moonmile Solutions Blog <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/9102\">http:\/\/www.moonmile.net\/blog\/archives\/9102<\/a><\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u306a MySQL \u306b\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u63a5\u7d9a\u6587\u5b57\u5217\u3092\u5909\u3048\u308c\u3070\u3088\u3044\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\npublic partial class RedmineEntities : DbContext\r\n {\r\n     public RedmineEntities()\r\n     {\r\n              \r\n     }\r\n     protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)\r\n     {\r\n         base.OnConfiguring(optionsBuilder);\r\n         optionsBuilder.UseMySQL(@&amp;quot;server=localhost;user id=redmine;password=redmine;database=redmine;port=19000;sslmode=None&amp;quot;);\r\n     }\r\n  \r\n     public DbSet&lt;projects&gt; projects { get; set; }\r\n     public DbSet&lt;issues&gt; issues { get; set; }\r\n}<\/pre>\n<p>\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u30d5\u30a9\u30ef\u30fc\u30c9\u3057\u3066\u3044\u308b 19000 \u306b\u5909\u3048\u308b\u3002<\/p>\n<p>.NET Core \u7248\u3060\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u5b9f\u884c\u304c\u3067\u304d\u308b\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image-32.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"335\" title=\"image\" style=\"margin: 0px; border: 0px currentcolor; border-image: none; display: inline; background-image: none;\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/05\/image_thumb-32.png\" border=\"0\"><\/a><\/p>\n<p>WPF \u7248\u306e\u5834\u5408\u306f\u3001app.config \u306b\u63a5\u7d9a\u6587\u5b57\u5217\u304c\u66f8\u3044\u3066\u3042\u308b\u3060\u308d\u3046\u304b\u3089\u3001\u305d\u3053\u3092\u76f4\u63a5\u66f8\u304d\u66ff\u3048\u308b\u3002EF \u306e\u30c7\u30b6\u30a4\u30ca\u3082\u4f7f\u3048\u308b\u306e\u3067\u4fbf\u5229\u3060\u308d\u3046\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;connectionStrings&gt;\r\n   &lt;add name=&amp;quot;RedmineEntities&amp;quot; connectionString=&amp;quot;server=localhost;user id=redmine;password=redmine;database=redmine;port=19000;sslmode=None&amp;quot; providerName=&amp;quot;MySql.Data.MySqlClient&amp;quot; \/&gt;\r\n&lt;\/connectionStrings&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3001MySQL Workbench \u304b\u3089 SSH \u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u30e9\u30ba\u30d1\u30a4\u306e MySQL \u3078\u63a5\u7d9a\u3067\u304d\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u304c\u3001\u3058\u3083\u3042\u72ec\u81ea\u306e C# \u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306f\u3069\u3046\u3059\u308b\u306e\u304b\uff1f\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308b\u3002 \u3053\u306e\u5834\u5408 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/9141\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,23,38],"tags":[],"class_list":["post-9141","post","type-post","status-publish","format-standard","hentry","category-dev","category-csharp","category-mysql"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9141","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=9141"}],"version-history":[{"count":4,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9141\/revisions"}],"predecessor-version":[{"id":9145,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9141\/revisions\/9145"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=9141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=9141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=9141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}