{"id":2346,"date":"2021-04-19T10:23:12","date_gmt":"2021-04-19T01:23:12","guid":{"rendered":"http:\/\/blog.anyons.net\/?p=2346"},"modified":"2022-07-12T14:42:53","modified_gmt":"2022-07-12T05:42:53","slug":"ef-%eb%82%b4%ec%97%90-foreignkey-%ea%b5%ac%ec%84%b1%ec%97%90-%eb%94%b0%eb%a5%b8-%ec%8a%a4%ed%82%a4%eb%a7%88-%ec%83%9d%ec%84%b1","status":"publish","type":"post","link":"https:\/\/anyons.net\/?p=2346","title":{"rendered":"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131"},"content":{"rendered":"\n<p>ICollection \uc0ac\uc6a9<\/p>\n<pre class=\"lang:c# decode:true\">public\t\t\t\t\tICollection&lt;Student&gt;\t\tm_listLandSiteDataText\t\t{ get; set; }\n\nprotected override void Up(MigrationBuilder migrationBuilder)\n{\n\tmigrationBuilder.AddColumn&lt;int&gt;(\n\t\tname: \"CourseId\",\n\t\ttable: \"Students\",\n\t\tnullable: true);\n\n\tmigrationBuilder.CreateIndex(\n\t\tname: \"IX_Students_CourseId\",\n\t\ttable: \"Students\",\n\t\tcolumn: \"CourseId\");\n\n\tmigrationBuilder.AddForeignKey(\n\t\tname: \"FK_Students_Courses_CourseId\",\n\t\ttable: \"Students\",\n\t\tcolumn: \"CourseId\",\n\t\tprincipalTable: \"Courses\",\n\t\tprincipalColumn: \"CourseId\",\n\t\tonDelete: ReferentialAction.Restrict);\n}\n<\/pre>\n<p>Index\uc640 ForeignKey \uc5c6\uc774 \uc0dd\uc131<\/p>\n<pre class=\"lang:c# decode:true\">[ForeignKey(\"Course\")]\npublic\t\t\t\t\tint\t\t\t\t\t\t\tCourseId\t\t\t\t\t{ get; set; }\n\n[ForeignKey(\"CourseId\")]\npublic\t\t\t\t\tint\t\t\t\t\t\t\tCourseId\t\t\t\t\t{ get; set; }\n\nprotected override void Up(MigrationBuilder migrationBuilder)\n{\n\tmigrationBuilder.AddColumn&lt;int&gt;(\n\t\tname: \"CourseId\",\n\t\ttable: \"Students\",\n\t\tnullable: false,\n\t\tdefaultValue: 0);\n}<\/pre>\n<p>virtual \uc0ac\uc6a9\uc2dc<\/p>\n<pre class=\"lang:c# decode:true \">public\t\t\t\t\tint\t\t\t\t\t\t\tCourseId\t\t\t\t\t{ get; set; }\n[ForeignKey(\"CourseId\")]\npublic\tvirtual\t\t\tCourse\t\t\t\t\t\tm_mvLandSiteDataImage\t\t{ get; set; }\n\nprotected override void Up(MigrationBuilder migrationBuilder)\n{\n\tmigrationBuilder.AddColumn&lt;int&gt;(\n\t\tname: \"CourseId\",\n\t\ttable: \"Students\",\n\t\tnullable: false,\n\t\tdefaultValue: 0);\n\n\tmigrationBuilder.CreateIndex(\n\t\tname: \"IX_Students_CourseId\",\n\t\ttable: \"Students\",\n\t\tcolumn: \"CourseId\");\n\n\tmigrationBuilder.AddForeignKey(\n\t\tname: \"FK_Students_Courses_CourseId\",\n\t\ttable: \"Students\",\n\t\tcolumn: \"CourseId\",\n\t\tprincipalTable: \"Courses\",\n\t\tprincipalColumn: \"CourseId\",\n\t\tonDelete: ReferentialAction.Cascade);\n}<\/pre>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"\n<p>ICollection \uc0ac\uc6a9<\/p>\n<p> public ICollection&lt;Student&gt; m_listLandSiteDataText { get; set; } protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn&lt;int&gt;( name: &#8220;CourseId&#8221;, table: &#8220;Students&#8221;, nullable: true); migrationBuilder.CreateIndex( name: &#8220;IX_Students_CourseId&#8221;, table: &#8220;Students&#8221;, column: &#8220;CourseId&#8221;); migrationBuilder.AddForeignKey( name: &#8220;FK_Students_Courses_CourseId&#8221;, table: &#8220;Students&#8221;, column: &#8220;CourseId&#8221;, principalTable: &#8220;Courses&#8221;, principalColumn: &#8220;CourseId&#8221;, onDelete: ReferentialAction.Restrict); } <\/p>\n<p>Index\uc640 ForeignKey \uc5c6\uc774 \uc0dd\uc131<\/p>\n<p> [ForeignKey(&#8220;Course&#8221;)] public int CourseId { get; set; [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[95,96],"tags":[31,458,459,384,460],"class_list":["post-2346","post","type-post","status-publish","format-standard","hentry","category-concept","category-programming","tag-csharp","tag-foreignkey","tag-icollection","tag-index","tag-migration","odd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131 - anydragon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/anyons.net\/?p=2346\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131 - anydragon\" \/>\n<meta property=\"og:description\" content=\"ICollection \uc0ac\uc6a9 public ICollection&lt;Student&gt; m_listLandSiteDataText { get; set; } protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn&lt;int&gt;( name: &quot;CourseId&quot;, table: &quot;Students&quot;, nullable: true); migrationBuilder.CreateIndex( name: &quot;IX_Students_CourseId&quot;, table: &quot;Students&quot;, column: &quot;CourseId&quot;); migrationBuilder.AddForeignKey( name: &quot;FK_Students_Courses_CourseId&quot;, table: &quot;Students&quot;, column: &quot;CourseId&quot;, principalTable: &quot;Courses&quot;, principalColumn: &quot;CourseId&quot;, onDelete: ReferentialAction.Restrict); } Index\uc640 ForeignKey \uc5c6\uc774 \uc0dd\uc131 [ForeignKey(&quot;Course&quot;)] public int CourseId { get; set; [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/anyons.net\/?p=2346\" \/>\n<meta property=\"og:site_name\" content=\"anydragon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/anydragon\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-19T01:23:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-12T05:42:53+00:00\" \/>\n<meta name=\"author\" content=\"anydragon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@anydragon\" \/>\n<meta name=\"twitter:site\" content=\"@anydragon\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"anydragon\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2346#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2346\"},\"author\":{\"name\":\"anydragon\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"headline\":\"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131\",\"datePublished\":\"2021-04-19T01:23:12+00:00\",\"dateModified\":\"2022-07-12T05:42:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2346\"},\"wordCount\":6,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"keywords\":[\"csharp\",\"foreignkey\",\"icollection\",\"index\",\"migration\"],\"articleSection\":[\"Concept\",\"Programming\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=2346#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2346\",\"url\":\"https:\\\/\\\/anyons.net\\\/?p=2346\",\"name\":\"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131 - anydragon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\"},\"datePublished\":\"2021-04-19T01:23:12+00:00\",\"dateModified\":\"2022-07-12T05:42:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2346#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/anyons.net\\\/?p=2346\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/anyons.net\\\/?p=2346#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/anyons.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/anyons.net\\\/#website\",\"url\":\"https:\\\/\\\/anyons.net\\\/\",\"name\":\"anydragon\",\"description\":\"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang\",\"publisher\":{\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/anyons.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/anyons.net\\\/#\\\/schema\\\/person\\\/e848d5666536ff82e9ee531c70249f2b\",\"name\":\"anydragon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"url\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"contentUrl\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\",\"width\":2560,\"height\":1440,\"caption\":\"anydragon\"},\"logo\":{\"@id\":\"http:\\\/\\\/anyons.net\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/bg3-scaled.jpeg\"},\"sameAs\":[\"http:\\\/\\\/anyons.net\",\"https:\\\/\\\/www.facebook.com\\\/anydragon\",\"https:\\\/\\\/x.com\\\/anydragon\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCr78KWpvmk398vPfpUTWNLg\"],\"url\":\"https:\\\/\\\/anyons.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131 - anydragon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/anyons.net\/?p=2346","og_locale":"ko_KR","og_type":"article","og_title":"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131 - anydragon","og_description":"ICollection \uc0ac\uc6a9 public ICollection&lt;Student&gt; m_listLandSiteDataText { get; set; } protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn&lt;int&gt;( name: \"CourseId\", table: \"Students\", nullable: true); migrationBuilder.CreateIndex( name: \"IX_Students_CourseId\", table: \"Students\", column: \"CourseId\"); migrationBuilder.AddForeignKey( name: \"FK_Students_Courses_CourseId\", table: \"Students\", column: \"CourseId\", principalTable: \"Courses\", principalColumn: \"CourseId\", onDelete: ReferentialAction.Restrict); } Index\uc640 ForeignKey \uc5c6\uc774 \uc0dd\uc131 [ForeignKey(\"Course\")] public int CourseId { get; set; [...]","og_url":"https:\/\/anyons.net\/?p=2346","og_site_name":"anydragon","article_publisher":"https:\/\/www.facebook.com\/anydragon","article_author":"https:\/\/www.facebook.com\/anydragon","article_published_time":"2021-04-19T01:23:12+00:00","article_modified_time":"2022-07-12T05:42:53+00:00","author":"anydragon","twitter_card":"summary_large_image","twitter_creator":"@anydragon","twitter_site":"@anydragon","twitter_misc":{"\uae00\uc4f4\uc774":"anydragon","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/anyons.net\/?p=2346#article","isPartOf":{"@id":"https:\/\/anyons.net\/?p=2346"},"author":{"name":"anydragon","@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"headline":"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131","datePublished":"2021-04-19T01:23:12+00:00","dateModified":"2022-07-12T05:42:53+00:00","mainEntityOfPage":{"@id":"https:\/\/anyons.net\/?p=2346"},"wordCount":6,"commentCount":0,"publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"keywords":["csharp","foreignkey","icollection","index","migration"],"articleSection":["Concept","Programming"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/anyons.net\/?p=2346#respond"]}]},{"@type":"WebPage","@id":"https:\/\/anyons.net\/?p=2346","url":"https:\/\/anyons.net\/?p=2346","name":"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131 - anydragon","isPartOf":{"@id":"https:\/\/anyons.net\/#website"},"datePublished":"2021-04-19T01:23:12+00:00","dateModified":"2022-07-12T05:42:53+00:00","breadcrumb":{"@id":"https:\/\/anyons.net\/?p=2346#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/anyons.net\/?p=2346"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/anyons.net\/?p=2346#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/anyons.net\/"},{"@type":"ListItem","position":2,"name":"EF \ub0b4\uc5d0 ForeignKey \uad6c\uc131\uc5d0 \ub530\ub978 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131"}]},{"@type":"WebSite","@id":"https:\/\/anyons.net\/#website","url":"https:\/\/anyons.net\/","name":"anydragon","description":"mac, linux, aws, c, c++, mysql, mssql, redis, csharp, nodejs, rust, golang","publisher":{"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/anyons.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":["Person","Organization"],"@id":"https:\/\/anyons.net\/#\/schema\/person\/e848d5666536ff82e9ee531c70249f2b","name":"anydragon","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","url":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","contentUrl":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg","width":2560,"height":1440,"caption":"anydragon"},"logo":{"@id":"http:\/\/anyons.net\/wp-content\/uploads\/2022\/06\/bg3-scaled.jpeg"},"sameAs":["http:\/\/anyons.net","https:\/\/www.facebook.com\/anydragon","https:\/\/x.com\/anydragon","https:\/\/www.youtube.com\/channel\/UCr78KWpvmk398vPfpUTWNLg"],"url":"https:\/\/anyons.net\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":270,"url":"https:\/\/anyons.net\/?p=270","url_meta":{"origin":2346,"position":0},"title":"SQL Injection \ubc29\uc5b4","author":"anydragon","date":"2012\ub144 02\uc6d4 20\uc77c","format":false,"excerpt":"\ucd9c\ucc98 : http:\/\/forums.asp.net\/t\/1254125.aspx \ub97c \ubcf4\uba74 ASP.NET 1.1\uc774\ub0d0 2.0 \uc774\ub0d0\uc5d0 \ub530\ub77c \uac01\uac01 \uc774\ub807\uac8c \ud558\ub77c\uace0 \ud55c\ub2e4. \uc544\uc9c1\uc740 \ub09c web.config\uac00 \uc775\uc219\uce58 \uc54a\uc544\uc11c \uadf8\ub7f0\uc9c0 1.1 \ubc29\uc2dd\uc73c\ub85c \ud558\uba74 \uc798 \ub418\ub294\ub370 2.0 \ubc29\uc2dd\uc73c\ub85c\ub294 \uc798 \uc548\ub41c\ub2e4. -_- ASP.NET 1.1 C# global.asax using System.Globalization; \/\/Defines the set of characters that will be checked. \/\/You can add to this\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27,"url":"https:\/\/anyons.net\/?p=27","url_meta":{"origin":2346,"position":1},"title":"\ud568\uc218 \ud3ec\uc778\ud130 \uc0d8\ud50c","author":"anydragon","date":"2010\ub144 01\uc6d4 07\uc77c","format":false,"excerpt":"#include #define COMMAND(NAME) { #NAME, NAME # # _command } using namespace std; struct command { char * name; void( * function)(int r_nArg); }; void quit_command(int r_nArg) { cout << \"quit_command \" << r_nArg; } void help_command(int r_nArg) { cout << \"help_command \" << r_nArg; } struct command commands1[] =\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":630,"url":"https:\/\/anyons.net\/?p=630","url_meta":{"origin":2346,"position":2},"title":"table \uc874\uc7ac \uc548\ud560\ub54c table \uc0dd\uc131","author":"anydragon","date":"2014\ub144 02\uc6d4 14\uc77c","format":false,"excerpt":"drop table tempdb; if exists ( select * from sysobjects where name = 'tempdb' and xtype = 'U' ) create table cars111 ( Name0 varchar(64) not null, Name1 varchar(64) not null, Name2 varchar(64) not null ); select * from INFORMATION_SCHEMA.COLUMNS where table_name = 'cars111' and column_name = 'Name0';","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":689,"url":"https:\/\/anyons.net\/?p=689","url_meta":{"origin":2346,"position":3},"title":"windows event log","author":"anydragon","date":"2014\ub144 06\uc6d4 21\uc77c","format":false,"excerpt":"\ucd9c\ucc98 http:\/\/mainia.tistory.com\/412 \uc774\ubca4\ud2b8\ub85c\uadf8 \uc4f0\uae30 static void Main(string[] args) { WriteEventLogEntry(\"This is an entry in the event log by daveoncsharp.com\"); } private static void WriteEventLogEntry(string message) { \/\/ Create an instance of EventLog System.Diagnostics.EventLog eventLog = new System.Diagnostics.EventLog(); \/\/ Check if the event source exists. If not create it. if (!System.Diagnostics.EventLog.SourceExists(\"TestApplication\"))\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29,"url":"https:\/\/anyons.net\/?p=29","url_meta":{"origin":2346,"position":4},"title":"CAnyObject Sample","author":"anydragon","date":"2010\ub144 01\uc6d4 14\uc77c","format":false,"excerpt":"\/*--------------------------------------------------------------------------------------------- Any \uc2dc\ub9ac\uc988\uc5d0 \ub300\ud55c \ub77c\uc774\uc13c\uc2a4 \uba85\uc2dc\uc785\ub2c8\ub2e4. \uc544\ub798 \ub77c\uc774\uc13c\uc2a4\uc5d0 \ub3d9\uc758\ud558\uc2dc\ub294 \ubd84\ub9cc Any \uc2dc\ub9ac\uc988\ub97c \uc0ac\uc6a9\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4. Any \uc2dc\ub9ac\uc988\uc758 \ubaa8\ub4e0 \uc800\uc791\uad8c\uc740 \uc800\uc791\uc790 \uc5d0\uac8c \uc788\uc2b5\ub2c8\ub2e4. Any \uc2dc\ub9ac\uc988\ub294 \uc800\uc791\uad8c \uba85\uc2dc\uc2dc \uac1c\uc778\uc740 \ub204\uad6c\ub098 \uc0ac\uc6a9\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4. Any \uc2dc\ub9ac\uc988\ub294 \uc0c1\uc5c5\uc801 \uc6a9\ub3c4\ub85c \uc0ac\uc6a9\ud560\uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e8 \uc800\uc791\uc790\uc758 \uc774\ud574\uac00 \uc788\ub294 \uacbd\uc6b0\ub294 \uc608\uc678\ub85c \ud569\ub2c8\ub2e4. Any \uc2dc\ub9ac\uc988\ub294 \uc0ac\uc6a9\uc73c\ub85c \uc778\ud55c \ub370\uc774\ud0c0 \uc190\uc2e4 \ubc0f \uae30\ud0c0\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":563,"url":"https:\/\/anyons.net\/?p=563","url_meta":{"origin":2346,"position":5},"title":"c# \uc591\ub825 \uc74c\ub825 \ubcc0\ud658","author":"anydragon","date":"2013\ub144 06\uc6d4 05\uc77c","format":false,"excerpt":"\/\/\uc591\ub825\uc740 \uc74c\ub825\uc73c\ub85c\ubcc0\ud658 \ud14c\uc2a4\ud2b8 private void button1_Click(object sender, EventArgs e) { label1.Text =\uc74c\ub825\ubcc0\ud658(2007, 1, 1); label2.Text = \uc74c\ub825\ubcc0\ud658(DateTime.Now); } \/\/\uc74c\ub825\uc744 \uc591\ub825\uc73c\ub85c \ubcc0\ud658 \ud14c\uc2a4\ud2b8 private void button2_Click(object sender, EventArgs e) { label2.Text = \uc591\ub825\ubcc0\ud658(2006,11,13,false).ToShortDateString(); } private string \uc74c\ub825\ubcc0\ud658(DateTime dt) { int n\uc724\uc6d4; int n\uc74c\ub825\ub144, n\uc74c\ub825\uc6d4, n\uc74c\ub825\uc77c; bool b\uc724\ub2ec = false; System.Globalization.KoreanLunisolarCalendar \uc74c\ub825\u2026","rel":"","context":"&quot;Programming&quot;\uc5d0\uc11c","block_context":{"text":"Programming","link":"https:\/\/anyons.net\/?cat=96"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/2346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2346"}],"version-history":[{"count":0,"href":"https:\/\/anyons.net\/index.php?rest_route=\/wp\/v2\/posts\/2346\/revisions"}],"wp:attachment":[{"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anyons.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}