1.4 KiB
1.4 KiB
no-loc | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Run the following .NET CLI commands:
dotnet tool uninstall -g dotnet-aspnet-codegenerator
dotnet tool install -g dotnet-aspnet-codegenerator --version 6.0.0-preview.7.21413.1
dotnet tool uninstall -g dotnet-ef
dotnet tool install --global dotnet-ef --version 6.0.0-preview.1.21112.2
dotnet add package Microsoft.EntityFrameworkCore.Design --prerelease
dotnet add package Microsoft.EntityFrameworkCore.SQLite --prerelease
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --prerelease
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --prerelease
The preceding commands add:
- The command-line interface (CLI) tools for EF Core
- The aspnet-codegenerator scaffolding tool.
- Design time tools for EF Core
- The EF Core SQLite provider, which installs the EF Core package as a dependency.
- Packages needed for scaffolding:
Microsoft.VisualStudio.Web.CodeGeneration.Design
andMicrosoft.EntityFrameworkCore.SqlServer
.
For guidance on multiple environment configuration that permits an app to configure its database contexts by environment, see xref:fundamentals/environments#environment-based-startup-class-and-methods.