【问题标题】:override Asp.net Identity MVC5覆盖 Asp.net Identity MVC5
【发布时间】:2014-02-27 10:03:00
【问题描述】:

我不知道 asp.net 身份与 EF 一起使用,但我可以覆盖以使用 Nhibernate。

目前我通过在我的项目中使用过滤器来使用自定义角色,我不需要使用注释角色=“管理员”,因为这些角色是自定义的。 在 asp.net 中身份将自定义角色,还是以相同的方式工作?

谁有例子?

谢谢

【问题讨论】:

    标签: asp.net-mvc asp.net-identity


    【解决方案1】:

    您可以使用 Nhibernate 实现 ASP.NET Identity。您只需使用 NHibernate 实现 Identity 核心接口。以下帖子解释了如何创建自定义存储提供程序http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity

    【讨论】:

    猜你喜欢
    • 2017-02-11
    • 1970-01-01
    • 1970-01-01
    • 2015-09-26
    • 2018-04-17
    • 2014-12-22
    • 1970-01-01
    • 2020-08-08
    • 1970-01-01
    相关资源
    最近更新 更多