Comments (1)
Hello there,
sorry for the late reply.
Have you tried the various fixes & workaround mentioned in this SO thread?
It seems like the issue is related to the project not being set as default (or not be seen as such by the dotnet ef CMD).
Anyway, here are the .NET CLI commands described in the book's Chapter 4 and their corresponding Package Manager Console / Powershell versions:
.NET CLI (dotnet-ef)
dotnet ef migrations add "Initial" -o "Data/Migrations"
dotnet ef migrations add "Identity" -o "Data/Migrations"
dotnet ef database update
dotnet ef database drop
Package Manager Console
Add-Migration Initial -OutputDir "Data/Migrations"
Add-Migration Identity -OutputDir "Data/Migrations"
Update-Database
Drop-Database
If you need to convert other commands, please read the following official guides:
- EF Core .NET CLI reference: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet
- EF Core PMC / PowerShell reference: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell
from asp.net-core-3-and-angular-9-third-edition.
Related Issues (18)
- Sql Timeout HOT 8
- The application to execute does not exist
- HTTP Error 502.5 - Process Failure HOT 3
- Issue page 160 HOT 1
- Issue Page 213 HOT 1
- Chapter 11: Publish WorldCities Fails at webpack.Progress 95% elifecycle of ng build --prod HOT 1
- Chapter 5 Client Side Paging HOT 2
- Facing error while retrieving all cities or countries HOT 1
- Issue Page 299 HOT 2
- Issue Page 304 HOT 1
- Issue Page 319 HOT 2
- Issue page 320 HOT 1
- Issue Page 347 HOT 1
- Issue Page 519 HOT 2
- Pg 108 ICMPHealthCheck.cs HOT 1
- Upgrading Angular from 8 to 9 HOT 2
- Unit Tests are not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asp.net-core-3-and-angular-9-third-edition.