보관함

EF 내에 ForeignKey 구성에 따른 스키마 생성

ICollection 사용

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; […]

media query Size

부트스트랩의 그리드 class .col-xl- (초대형 장치) .col-lg- (대형 장치 – 화면 너비가 1200 px 미만) .col-md- (중간 크기 장치 – 화면 너비가 992px 미만) .col-sm- (소형 장치 – 화면 너비가 768px 미만) .col- (소형 장치 – 화면 너비가 576px 미만) .col (기본값 – 자동으로 반응) 기본 – 데스크탑 @media (min-width: 1281px) – 랩탑, 데스크탑 […]

Load Avg

다른건 그냥 웹에서 찾아보고CPU Core 갯수를 가져오면

sysctl hw.ncpu | awk ‘{print $2}’

load Avg가 저 수치가 되면 모든 cpu의 core를 100% 사용하고 있다는 거…