리액트 정리
[ASP.Net] "Rating" column not being added when running: dotnet ef database update 본문
Uncategorized
[ASP.Net] "Rating" column not being added when running: dotnet ef database update
버그킴 2020. 2. 14. 14:08Add a new field to a Razor Page in ASP.NET Core
Shows how to add a new field to a Razor Page with Entity Framework Core
docs.microsoft.com
1: remove current database
2: run 'dotnet ef migrations remove' to remove all migrations
3: run 'dotnet ef migrations add initialCommit --context initialCommitContext'
4: run 'dotnet ef database update'
$ dotnet ef migrations add InitialCreate
$ dotnet ef database update
$ dotnet watch run
$ dotnet ef migrations add "NsccCourseMap" --context NsccCourseMapContext
$ dotnet ef database update --context NsccCourseMapContext
$ dotnet run
scaffold pages corresponding to models
$ dotnet aspnet-codegenerator razorpage -m Semester -dc NsccCourseMapContext -udl -outDir Pages/Semesters --referenceScriptLibraries
'Uncategorized' 카테고리의 다른 글
[Node.js] Node.js란...? (0) | 2020.03.17 |
---|---|
[DB] Centos 7 SQLite 설치 (0) | 2020.02.14 |
[DB] NoSQL - MongoDB(몽고디비) 특징 정리 (0) | 2020.02.14 |
[DB] SQL - SQLite vs MySQL vs PostgreSQL : 관계형 데이터베이스 관리 시스템 비교 (0) | 2020.02.14 |
인내는 쓰고 초밥은 달다 (0) | 2020.01.30 |