Custom Members and role database?

 ̄綄美尐妖づ 提交于 2019-12-25 08:59:06

问题


Newbie here, I havn't done much membership stuff for asp.net. I am trying to take advantage of the asp.net membership mechanism for a new app I am building, but I wish to store the member information in my own database. what are my options? Do I need to write a custom membership provider? or does asp.net have a standard provider for sql (with specified tables and column names)?

Quick edit: Each member is logged in using their windows authentication, but I also need to store extra information about them such as their department, age, rank etc.


回答1:


You might want to consider using new Universal Membership Provider

Membership Provider is a steep learning curve. If you are not familiar with Membership Provider, please use the default one rather than implementing custom membership provider.

Then use the UserId of User table as primary key in other tables which you store user related information.



来源:https://stackoverflow.com/questions/10110780/custom-members-and-role-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!