added missing instruction for scaffolding uisng SQLite (#22081)
* added missing instruction for scaffolding uisng SQLite * Update identity.md Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>pull/22100/head
parent
7dcbcec671
commit
9717e1bda8
|
@ -146,13 +146,19 @@ Add the `Register`, `Login`, `LogOut`, and `RegisterConfirmation` files. Follow
|
|||
|
||||
# [.NET Core CLI](#tab/netcore-cli)
|
||||
|
||||
If you created the project with name **WebApp1**, run the following commands. Otherwise, use the correct namespace for the `ApplicationDbContext`:
|
||||
If you created the project with name **WebApp1**, and you're not using SQLite, run the following commands. Otherwise, use the correct namespace for the `ApplicationDbContext`:
|
||||
|
||||
```dotnetcli
|
||||
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
|
||||
dotnet aspnet-codegenerator identity -dc WebApp1.Data.ApplicationDbContext --files "Account.Register;Account.Login;Account.Logout;Account.RegisterConfirmation"
|
||||
```
|
||||
|
||||
When using SQLite, append `--useSqlite` or `-sqlite`:
|
||||
|
||||
```dotnetcli
|
||||
dotnet aspnet-codegenerator identity -dc WebAppAuth.Data.ApplicationDbContext --files "Account.Register;Account.Login;Account.Logout;Account.RegisterConfirmation" --useSqlite
|
||||
```
|
||||
|
||||
PowerShell uses semicolon as a command separator. When using PowerShell, escape the semicolons in the file list or put the file list in double quotes, as the preceding example shows.
|
||||
|
||||
For more information on scaffolding Identity, see [Scaffold identity into a Razor project with authorization](xref:security/authentication/scaffold-identity#scaffold-identity-into-a-razor-project-with-authorization).
|
||||
|
|
Loading…
Reference in New Issue