Search code examples
asp.net-mvc-4code-firstsimplemembership

query webpages_Membership


I'm using the MVC4 Internet Application Code First. I was wondering if there is a way for me to retrieve the PasswordVerificationToken from the webpages_Membership table. I've tried following instructions in this older question.

I'm able to retrieve the PasswordVerificationToken from the webpages_Membership table however when I try to add a user to a role using Roles.AddUserToRole I get a foreign key constraint error.


Solution

  • Doesn't matter just added the simple membership tables to an entity model