27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
---
|
|
no-loc: [Home, Privacy, Kestrel, appsettings.json, "ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR]
|
|
---
|
|
Run the following .NET CLI commands:
|
|
|
|
```dotnetcli
|
|
dotnet tool install --global dotnet-ef
|
|
dotnet tool install --global dotnet-aspnet-codegenerator
|
|
dotnet add package Microsoft.EntityFrameworkCore.SQLite
|
|
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
|
|
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
|
|
dotnet add package Microsoft.EntityFrameworkCore.Design
|
|
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
|
|
dotnet add package Microsoft.Extensions.Logging.Debug
|
|
```
|
|
|
|
The preceding commands add:
|
|
|
|
* The [aspnet-codegenerator scaffolding tool](xref:fundamentals/tools/dotnet-aspnet-codegenerator).
|
|
* 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` and `Microsoft.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>.
|
|
|
|
[!INCLUDE[](~/includes/scaffoldTFM-5.md)]
|