Ninject and ASP.NET Identity 2.0

后端 未结 1 1800
别跟我提以往
别跟我提以往 2021-02-08 23:52

I just upgraded the ASP.NET Identity Entity Framework package from 1.0 to 2.0 and one of the Ninject bindings is now broken:

kernel.Bind

        
相关标签:
1条回答
  • 2021-02-09 00:34

    We added a new base RoleStore class and added the user role entity type as a generic type, so perhaps try

    kernel.Bind<IRoleStore<IdentityRole, string>>().To<RoleStore<IdentityRole, string, IdentityUserRole>>();
    
    0 讨论(0)
提交回复
热议问题