Subject: .NET 20.1A
dotnet restore
Run the following commands in exact order:
- This will install code generation tool
dotnet tool install -g dotnet-aspnet-codegenerator
- This will init migrations
dotnet ef migrations add [name]
Ex: dotnet ef migrations add CreateIdentitySchema
- This will apply migration configs (which located in the
Migrations
folder):
dotnet ef database update
dotnet ef database drop
dotnet ef migrations remove