【发布时间】:2015-05-03 15:04:56
【问题描述】:
在 SimpleMembership 中曾经有 UserProfile,但在身份 1 和 2 中没有。身份中的正确替代品是什么?
应用用户?
【问题讨论】:
标签: entity-framework asp.net-mvc-5 entity-framework-6
在 SimpleMembership 中曾经有 UserProfile,但在身份 1 和 2 中没有。身份中的正确替代品是什么?
应用用户?
【问题讨论】:
标签: entity-framework asp.net-mvc-5 entity-framework-6
现在存储个人资料信息要容易得多。基本上,只需从 IdentityUser 继承并添加您的自定义数据。这是一篇将身份与简单成员资格进行比较的好文章:http://www.itorian.com/2013/11/customize-users-profile-in-aspnet.html
【讨论】:
ApplicationUser 代替UserProfile 并为ApplicationUser 获取Roles 等等?