Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Membership Proivder and UserID for Foreign Key

$
0
0

I created a new MVC3 project in VWD2010.  It setup the Membership Provider stuff by default. 

I want to have the logged in user's "userID" stored as a foreign key in my own database tables.  I see the _LogOnPartial view refers to

@User.Identity.Name.  Would I just insert that into my own table (with no ref. integrity) or is there another preferred property/method?  Should I add a FK between the default Membership table to my own?

Thanks.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>