I have a generic repository that takes DbContext as a constructor parameter. To inject it my binding looks as such:
Bind<DbContext>().To<MyApplicationsContext>().InRequestScope();
I also have custom repositories, which take MyApplicationContext directly as a constructor parameter. How do I write a binding as such that regardless whether a repository requests the base class DbContext or the inheriting class MyApplicationContext it gets the same instance InRequestScope?