2018-05-17 07:12:09 +08:00
The generated Identity database code requires [Entity Framework Core Migrations ](/ef/core/managing-schemas/migrations/ ). Create a migration and update the database. For example, run the following commands:
2018-06-05 13:22:57 +08:00
# [Visual Studio](#tab/visual-studio)
2018-05-17 07:12:09 +08:00
In the Visual Studio **Package Manager Console** :
2019-09-18 05:01:04 +08:00
```powershell
2019-12-19 07:55:35 +08:00
Install-Package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
2018-05-17 07:12:09 +08:00
Add-Migration CreateIdentitySchema
Update-Database
```
# [.NET Core CLI](#tab/netcore-cli)
2019-09-18 05:01:04 +08:00
```dotnetcli
2018-05-17 07:12:09 +08:00
dotnet ef migrations add CreateIdentitySchema
dotnet ef database update
```
2019-03-21 13:13:02 +08:00
---
2018-05-17 07:12:09 +08:00
2018-07-09 10:48:10 +08:00
The "CreateIdentitySchema" name parameter for the `Add-Migration` command is arbitrary. `"CreateIdentitySchema"` describes the migration.