그때 그때 사용하지 않는 것을 Disable 해서 쓴다.
 Auto Rename Tag Bootstrap 4, Font awesome4, Font Awesome5 Free & Pro snippets Bootstrap 5 Snippets C/C++ C# C# Extensions CSS Peek Debugger for Chrome DotENV ES7 React/Redux/GraphQL/React-Native snippets Font Awesome Auto-complete & Preview Git History GitLens Git supercharged Go Highlight Matching Tag Html (C#) HTML […]
 								 	
						
		
								
										
ICollection 사용
 
		
			
			
			
			
				
					
				
					1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
						public 					 ICollection < Student > 		 m_listLandSiteDataText 		 {   get ;   set ;   } 
 
protected   override   void   Up ( MigrationBuilder  migrationBuilder ) 
{ 
	 migrationBuilder . AddColumn < int > ( 
		 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와 ForeignKey 없이 생성
 
		
			
			
			
			
				
					
				
					
				 
						[ ForeignKey ( "Course" ) ] 
public 					 int 							 CourseId 					 {   get ;   set ;   } 
 
[ ForeignKey ( "CourseId" ) ] 
public 					 int 							 CourseId 					 {   get ;   set ;   } 
 
protected   override   void   Up ( MigrationBuilder  migrationBuilder ) 
{ 
	 migrationBuilder . AddColumn < int > ( 
		 name :   "CourseId" , 
		 table :   "Students" , 
		 nullable :   false , 
		 defaultValue :   0 ) ; 
} 
 
				
			 
		 
 
virtual 사용시
 
		
			
			
			
			
				
					
				
					1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
						public 					 int 							 CourseId 					 {   get ;   set ;   } 
[ ForeignKey ( "CourseId" ) ] 
public 	 virtual 			 Course 						 m_mvLandSiteDataImage 		 {   get ;   set ;   } 
 
protected   override   void   Up ( MigrationBuilder  migrationBuilder ) 
{ 
	 migrationBuilder . AddColumn < int > ( 
		 name :   "CourseId" , 
		 table :   "Students" , 
		 nullable :   false , 
		 defaultValue :   0 ) ; 
 
	 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 . Cascade ) ; 
} 
 
				
			 
		 
 
 								 	
						
		
								
										
vscode에 launch.json
 
		
			
			
			
			
				
					
				
					
				 
						{ 
	 / /   IntelliSense를  사용하여  가능한  특성에  대해  알아보세요. 
	 / /   기존  특성에  대한  설명을  보려면  가리킵니다. 
	 / /   자세한  내용을  보려면  https: / / go. microsoft. com/ fwlink/ ? linkid= 830387을( 를)   방문하세요. 
	 "version" :   "0.2.0" , 
	 "configurations" :   [ 
		 { 
			 "name" :   "Launch Package geth" , 
			 "type" :   "go" , 
			 "request" :   "launch" , 
			 "mode" :   "debug" , 
			 "program" :   "${workspaceFolder}/cmd/geth/"      / /   main. go  가  있는  폴더  path
		 } 
	 ] 
} 
 
				
			 
		 
 
 								 	
						
	
					
    
 
	
링크