aspnet mvc 使用 aspnet_users 表扩展成员身份详细信息
我阅读了所有可用的帖子,提到了延长会员资格并包含用户详细信息的可能性,但目前该程序对我来说还不太清楚。我想知道是否有人可以为我提供一些线索,提供以下链接: - 一本带有外键为 aspnet_users 的用户表实现的书。 - 带有 aspnet_users 外键的用户表的逐步教程。 - 包含如何实现用户详细信息的详细信息的 Microsoft 页面。
此外,如果能提供相同的信息来实现电子邮件验证、密码恢复,那就太好了。
I read all posts available referred to the possibility to extend membership and include users details information but at the moment the procedure is not so clear for me. I was wondering if anyone can shed some light providing me a link to:
- a book with an implementation of a users table with foreign key to aspnet_users.
- a tutorial step by step of a users table with foreign key to aspnet_users.
- a microsoft page with detailed information of how to implement users details.
Additionally, same information to implement email verification, password recovery would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您通常会使用
配置文件
来存储用户相关的元数据。这是众所周知的过程,只需要配置即可利用符合 ProfileProvider 模型的控件和代码。
这是阻力最小的路径,也是大多数情况下推荐的策略。
这里是一个链接,指向在 asp.net 中实现配置文件的一个很好的示例。
“扩展”和关闭 aspnet 表需要自定义数据库、编写和测试代码来执行数据访问。这是一条艰难的道路,只能作为最后的手段,并且由经验丰富的开发人员采取。
You would typically use
profiles
to store user related meta data.This is a well known procedure and requires only configuration in order to leverage controls and code that conform to the ProfileProvider model.
This is the path of least resistance and the recommended strategy in most cases.
here is a link to a fine example of implementing profiles in asp.net.
'Extending' and keying off of the aspnet tables would entail customizing the database, writing and testing code to perform your data access. This is the hard road and should be taken only as a last resort and by an experienced developer.