MVC 4使用自定义架构和UserId Guid的SimpleMembership

3
默认情况下,SimpleMembership使用int作为UserId。是否有一种快速的方法使SimpleMembership UserId 使用GUID?如果没有,我能否扩展SimpleMembership来实现这一点?最好的方法是什么?是否有人成功地使用了由Scott Allen启动的MemFlex开源库?https://github.com/OdeToCode/Memflex
1个回答

1

是的,目前必须使用int,也许在未来的版本中会扩展使用guid。

您可以查看“aspnetwebstack”项目的源代码: https://aspnetwebstack.codeplex.com/

我还没有尝试过MemFlex,但它看起来很不错 - 目前我正在使用SimpleMembership。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接