I did the same, its a lot of effort and you have to do db migrations, but first
New ASP Identity V3 Tables and Migration

New ASP Identity V3 Fields

Setting up tables In Startup.cs and change services.AddIdentity
services.AddIdentity<ApplicationUser, IdentityRole<int>>() .AddEntityFrameworkStores<ApplicationDbContext, int>() .AddDefaultTokenProviders();
In ApplicationContext.cs and change the class to the next signature.
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, IdentityRole<int>, int>
In ApplicationUser.cs and change the class to the next signature.
`public class ApplicationUser : IdentityUser<int> {...}`
- Given all the changes, it was easier for me to delete everything in the migration (except migrations). Go to the project directory on the command line and enter / add migration so
dotnet ef migrations add MyDatabaseHere -o Data\Migrations . (-o Option - specify the target folder, not the root folder) - for any migration problems, I would just reset the database and deploy it again.
- or you can automate with this I have not tried this
I have two migration scenarios from EF, I was not sure why ... but for more links from github links 1 and 2
source share