2021-02-16 06:06:48 +08:00
---
2021-05-09 04:12:34 +08:00
no-loc: [Home, Privacy, Kestrel, appsettings.json, "ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR]
2021-02-16 06:06:48 +08:00
---
2019-09-23 07:00:27 +08:00
Run the following .NET Core CLI commands:
```dotnetcli
2020-11-07 06:26:26 +08:00
dotnet tool install --global dotnet-ef --version 3.1.9
dotnet tool install --global dotnet-aspnet-codegenerator --version 3.1.4
dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 3.1.9
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore --version 3.1.9
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --version 3.1.4
dotnet add package Microsoft.EntityFrameworkCore.Design --version 3.1.9
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 3.1.9
dotnet add package Microsoft.Extensions.Logging.Debug --version 3.1.9
2019-09-23 07:00:27 +08:00
```
The preceding commands add:
* The [aspnet-codegenerator scaffolding tool ](xref:fundamentals/tools/dotnet-aspnet-codegenerator ).
* The Entity Framework Core Tools for the .NET Core 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` .
2019-11-06 06:24:20 +08:00
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 > .
2019-12-31 04:03:09 +08:00
[!INCLUDE[ ](~/includes/scaffoldTFM.md )]