1.2 KiB
1.2 KiB
Run the following .NET CLI commands:
dotnet tool install --global dotnet-ef --version 5.0.100-rc.2.20479.15
dotnet tool install --global dotnet-aspnet-codegenerator --version 5.0.100-rc.2.20479.15
dotnet add package Microsoft.EntityFrameworkCore.SQLite -v 5.0.0-*
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -v 5.0.0-*
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design -v 5.0.0-*
dotnet add package Microsoft.EntityFrameworkCore.Design -v 5.0.0-*
dotnet add package Microsoft.EntityFrameworkCore.SqlServer -v 5.0.0-*
dotnet add package Microsoft.Extensions.Logging.Debug -v 5.0.0-*
The preceding commands add:
- The aspnet-codegenerator scaffolding tool.
- The EF Core Tools for the .NET CLI.
- 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.