Using Ninject with a Custom Role provider in an MVC3 app

前端 未结 2 1949
花落未央
花落未央 2021-02-04 15:01

I\'m trying to use a custom role provider in an MVC3 app. I\'ve already got the membership provider working ok using Ninject but can\'t seem to get the role provider working.

2条回答
  •  余生分开走
    2021-02-04 16:00

    Alternatively, if you're using the Ninject.Web.Mvc nuget package you can always use property injection on your role provider as illustrated here:

    ASP.NET MVC 3 Ninject Custom Membership and Role Provider

提交回复
热议问题