开发者

Extending the default ASP.NET MVC3 membership system

I have implemented a new web app that makes use of the default membership system in ASP.NET MVC3.

However, what should I do if want to start storing additional information about these registered users?

Supposing I wanted to store each users "fav colour", what is the best practice in this sitution?

I did look at the suggested "related questions" but found these were more geared t开发者_StackOverflowowards webforms or maybe just at a level I could not understand...

Thanks Paul


I typically create a table in my database to hold this additional information and use the username (must be unique) form the membership db as the key.


using the built in membership system for profiles is a giant pain with mvc the way i usually work around this is creating my own table and adding an entry with the assigned user guid as a key on user registration and attaching to the membership class using extension methods or a wrapper

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜