This blog post will show you how to install Entity Framework Core packages using PowerShell.
Installing EF Core is a two-step process. First, we need to install the packages inside our application folder. The second step is installing it on a global level.
Run inside your App Folder
The cmdlets below will install the core package and the SqlServer support package.
Note: To install the latest version, remove the –version option.
dotnet add package Microsoft.EntityFrameworkCore.Design --version 6.0.3
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 6.0.3
Run
To install the EF Core tools, we run the following cmdlet.
dotnet tool install --global dotnet-ef --version 6.0.3