The term “Add-Migration” is not recognized
Just install Microsoft.EntityFrameworkCore.Tools package from nuget: Install-Package Microsoft.EntityFrameworkCore.Tools -Version 6.0.8 You can also use this link to install the latest version: NuGet package link .NET CLI command: dotnet add package Microsoft.EntityFrameworkCore.Tools If the problem still persists, try restarting Visual Studio.