Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET SQL Membership Tables

What's the best way to tie my tables (like Customer, Orders) to the Users in the membership tables. Is there a way to tie it using an int somehow?

like image 933
Rod Avatar asked Oct 13 '22 22:10

Rod


1 Answers

You can use the User.ProviderUserKey but that is a GUID, not an int. That will map to the UserId field in the aspnet_Membership table

like image 154
brendan Avatar answered Oct 18 '22 03:10

brendan