I have the following scenario:
My classic ASP application uses a table called "users" to authenticate our logins. We are moving from ASP to .NET (MVC 5) and we would like to use the new Identity 2.0 framework.
Since almost all our other tables have a foreign key pointing to this table, we are going to initially add/copy users into the two tables until we change all our procedures, views, etc..
Well..To be able to use the User.Identity.GetUserId() method (yes, I already changed from guid to int), I would like to set the Id from new users to be the same as our old table.
Identity Framework automatically sets the Id column to be a sequence and I couldn't find a way to remove this option (but still keeping the PK).
So...should I add a new column "oldid" or is there a way for me to reuse the default column ? Also, if I add this new column, is there a way to override the GeUserId method to return this column instead of the default "Id" ?