Using Ninject with Membership.Provider

前端 未结 4 1091
刺人心
刺人心 2021-01-11 14:19

I\'m new to Ninject and I\'m having problems using it with a custom membership provider.

My membership provider has a repository interface passed in. It looks like:<

4条回答
  •  一生所求
    2021-01-11 14:47

    I haven't used Ninject ever. but in StructureMap i set this dependency:

    expression.For().Add(System.Web.Security.Membership.Provider);
    

    and it works fine.

提交回复
热议问题