c# - How to make foreign key from Membership's users table to custom table in code first approach in MVC 4? -


i creating mvc 4 application in code first approach , using defaultmembershipprovider , defaultroleprovider, getting problem in making foreign key of membership's users table custom table, stores additional information of users. please provide me way how can this.

please suggest.

here's 1 way:

you create tables using code first entities. go database schema, right click schema, select "relationships" , manually create relationship membership table in sql server. you'll have make sure membership table has been created in database first.


Comments

Popular posts from this blog

Eclipse formatter for java ending braces -

ruby - Nesting modules inside of a Rails eninge gem -

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -