Inject repository to custom membership provider with Ninject

后端 未结 4 2032
走了就别回头了
走了就别回头了 2020-11-30 10:13

I\'m trying to inject a repository to a custom membership provider with ninject in MVC 3.

In MembershipProvider I have tried the following:

[Inject]
         


        
4条回答
  •  一整个雨季
    2020-11-30 10:45

    Did you try resolving your repository "manually", like in this answer: Ninject : Resolving an object by type _and_ registration name/identifier ?

提交回复
热议问题