Question

The registration and manage pages would like to "join" a separate user table that I am "joining" as I work to establish authentication using the new Identity and MVC5. I've read a lot about expanding the AspNetUser database, but I really want to learn how to join a different table. Because this project will serve as a model for other web site applications and because each project has different needs for user tables, I don't want to just add fields to the AspNetUser table. Instead, I think it will be more efficient to modify a different table.

I would highly appreciate any code samples because I learn better by doing than by reading about it.

Alex

1
2
11/19/2013 6:23:14 PM

Accepted Answer

Since ASP.NET Identity makes use of EF Code First, you may construct a new Code First class and add it to the DbContext to store your Profile as a distinct table. The article that follows demonstrates how to carry out this action.

0
11/21/2013 1:19:11 AM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow