Scenario:
I have received auto generated project in ASP.NET CORE from my colleague. There is auto-generated code for Account/Manage service. This code includes ApplicationUser Class, DBContext and migration folder with 00000000000000_CreateIdentitySchema.cs and 20180323155805_Snapshot.cs. I have been trying to change my User class to have integer id. To do that I added generic to IdentityUser:
public class ApplicationUser : IdentityUser**<int>**
{
}
I also had to create ApplicationRole class, because before it had been created in migration files.
public class ApplicationRole : IdentityRole<int>
{
}
I also changed my context:
public class ApplicationDbContext : IdentityDbContext<ApplicationUser,
**ApplicationRole, int**>
In migration files, there is created login scheme. After my changes addition, I add new migrations. During adding migration i received this error:
To change the IDENTITY property of a column, the column needs to be dropped and recreated.