I am using SimpleMembership and I connected it to my User table and everything worked fine. But when I tried to change UserId from int to guid, I got an error:
Cannot convert type 'System.Guid' to 'int'
For these lines of code:
WebSecurity.CreateUserAndAccount(model.Email, model.Password, new { Name = model.Name, Surname = model.Surname, Gender = model.Gender, } );
In the webpages_OAuthMembership and webpages_Membership tables, I changed the UserId from int to uniqueidentifier (which represents guid), but didn't help.
So, can I have a pointer for the user ID, and if I can, how? And if I can’t use guid, can I use BIGINT?
source share