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
Post a Comment