Excluding the profile provider, is there an easy way to add custom fields to ASP.NET membership?

风流意气都作罢 提交于 2019-12-02 18:08:17

问题


I know you can use the Profile provider for custom fields, but given the way the data is stored in the database, it is not efficient for my needs.

Is there a way to add custom fields to the database for use with membership, while taking advantage of all the built in membership stored procedures and c# classes? (Short of adding fields to the table, and modifying all the procedures and methods)

Thanks! Kevin


回答1:


Have you looked at the Table Profile Provider, here is a link: http://www.asp.net/downloads/sandbox/table-profile-provider-samples/. This might solve you problem, since it stores each value in a single column insteal of a single column like the default provider.



来源:https://stackoverflow.com/questions/1013663/excluding-the-profile-provider-is-there-an-easy-way-to-add-custom-fields-to-asp

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