ASP.NET MVC - Alternative to Role Provider?

前端 未结 5 1997
灰色年华
灰色年华 2020-12-02 04:15

I\'m trying to avoid the use of the Role Provider and Membership Provider since its way too clumsy in my opinion, and therefore I\'m trying to making my own \"version\" whic

5条回答
  •  广开言路
    2020-12-02 04:38

    You don't need to use a static class for roles. For instance, the SqlRoleProvider allows you to define the roles in a database.

    Of course, if you want to retrieve roles from your own service layer, it's not that hard to create your own role provider - there really aren't that many methods to implement.

提交回复
热议问题