Try using ConstructorArgument
kernel.Bind<IUserStore<ApplicationUser>()
.To<UserStore<ApplicationUser>>()
.WithConstructorArgument(new ConstructorArgument("context", new ApplicationDbContext())
But...
In fact, you should also add dependency to yours UserStore<ApplicationUser>, binding ApplicationDbContext. Then the structure will build the whole chart for you:
kernel.Bind<ApplicationDbContext>().ToSelf()
source
share