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

627 B

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:

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.