This repository contains the boilerplate for a microservices-based system. It includes multiple backend services built with ASP.NET Core and an Angular frontend for the administration page.
-
Open the Package Manager Console: In Visual Studio, go to Tools > NuGet Package Manager > Package Manager Console.
-
Clean Up the current database: This will revert your database to the state it was in before any migrations were applied.
Update-Database -Migration:0
-
Remove Migration Snapshot: Delete the
Migrations
folder within your .EntityFramework project. You can do this directly from the Solution Explorer.
-
Generate a New Initial Migration: In the Package Manager Console, run the following command to generate a new initial migration: This command will create a new migration file in the Migrations folder.
Add-Migration InitialCreate
-
Apply the New Initial Migration: Run the following command to apply the new initial migration to the database:
Update-Database