AspNetCore.Docs/aspnetcore/includes/scaffold-identity/migrations.md

898 B

no-loc
Home
Privacy
Kestrel
appsettings.json
ASP.NET Core Identity
cookie
Cookie
Blazor
Blazor Server
Blazor WebAssembly
Identity
Let's Encrypt
Razor
SignalR

The generated Identity database code requires Entity Framework Core Migrations. Create a migration and update the database. For example, run the following commands:

Visual Studio

In the Visual Studio Package Manager Console:

Install-Package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
Add-Migration CreateIdentitySchema
Update-Database

.NET Core CLI

dotnet ef migrations add CreateIdentitySchema
dotnet ef database update

The "CreateIdentitySchema" name parameter for the Add-Migration command is arbitrary. "CreateIdentitySchema" describes the migration.