dotnet tool install --global dotnet-efdotnet tool update --global dotnet-efdotnet ef --versiondotnet ef migrations add <MigrationName>dotnet ef migrations removedotnet ef database update <MigrationName-to-which-you-want-to-revert>
dotnet ef migrations removeYou need to run the remove command as many times as needed to go back to the MigrationName-to-which-you-want-to-revert
dotnet ef database updatedotnet ef migrations listdotnet ef database drop