일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 26 | 27 | 28 |
29 | 30 |
- Blazor
- 인프런
- 자바스크립트
- 객체리터럴
- 인프런강좌
- HTTP
- 객체의비교
- c#
- slice
- 자바스크립트함수
- 제로초
- EntityFramework
- 콜백함수
- 인터넷프로토콜
- 틱택토구현
- 인프런무료강좌
- 고차함수
- 인프런강의
- 자바스크립트파라미터
- 이벤트리스너
- sort
- 비주얼스튜디오
- .NET
- 자바스크립트recude
- NPM
- 코딩
- 자바스크립트객체리터럴
- 자바스크립트틱택토
- 인프런인강
- 인프런자바스크립트
- Today
- Total
목록Entity Framework (3)
샐님은 개발중
https://learn.microsoft.com/en-us/ef/core/saving/execute-insert-update-delete ExecuteUpdate and ExecuteDelete - EF CoreUsing ExecuteUpdate and ExecuteDelete to save changes with Entity Framework Corelearn.microsoft.com위 참고 사이트를 나름대로 요약한 내용입니다.ExecuteUpdate and ExecuteDelete : EF의 전통적인 변화 추적 과 SaveChanges() 메소드를 사용하지 않고 database에 데이터를 저장하는 방법. 1. ExecuteDelete1) 전통적인 방법 SaveChanges() 사용 asy..
1. Order 모델 생성 후 Customer 모델의 외래키 적용 1) Order 모델 생성 using System.ComponentModel.DataAnnotations; namespace EntityFrameworkTest.Data.Model { public class Order { [Key] public int Id { get; set; } public string? ItemDescription { get; set; } public int Quantity { get; set; } public Customer Customer { get; set; } } } 2) Db Set 추가 using EntityFrameworkTest.Data.Model; using Microsoft.EntityFramewor..

1. Visual Studio 에서 .net 6 blazor server app 프로젝트 생성 2. 도구 > Nuget 패키지 관리자 > 솔루션용 Nuget 패키지 관리 에서 Microsoft.EntityFrameworkCore 버전 6.026 Microsoft.EntityFrameworkCore.SqlServer 버전 6.026 을 설치. 3. Data 폴더에서 DemoDbContext.cs 파일 생성 DbContext 를 상속받는데, DbContext는 EntityFrameworkCore 의 클래스이다. using Microsoft.EntityFrameworkCore; namespace EntityFrameworkTest.Data { public class DemoDbContext : DbContex..