'Changing user id from string to int (aspnet core identity)

I am just trying to build a simple blog app on blazor server app. I only included Login, Register and Logout using Identity scaffolder. I am trying to convert user id from string to int. Followed MS documentation and here is what I have done so far:

I created these 2 classes and replaced all the IdentityUser and IdentityRole classes with these in my project like login, program.cs and register

Here is the DBContext

This is program.cs

This error shows up when I run the solution. Any idea on how to resolve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source